gistlib
other matlab categories
conditional statements code snippets in matlab
0 <= 10 <= 50 in matlab
0<= t <= 200 in matlab
0<= t <= y in matlab
2) sums the values of those elements of “x” that are lower than 26. in matlab
add to image matrix by including any adjacent pixels with intensity values between 900 and 1300 in matlab
calculate the frequency of letters in words in matlab
check if all elements are positive in matlab
check if all inputs are positive and convert to positive values if not in matlab
compare cell with a double in matlab
counts the number of elements in vector “x” that have values between 14 and 42 and creates a new vector “y” that contains only the elements of “x” in that specified range. in matlab
create a 2d matrix making sure that the second column from the left and second column from the right are equal to the column number in matlab
create a loop to replace values that equal zero in matlab
create a matrix making sure that the second column from the left & second column from the right are equal to the column number in matlab
create a while loop to get new values for certain numbers in matlab
display the elements of a matrix a with elements form 1 to 100 that are divisible by 7 in matlab
find negative elements in matrix and keep their values in matlab
find negative numbers in a matrix in matlab
find the coordinates of the largest value in a matrix in matlab
find the location of the max of a matrix when another matrix equals 0 in matlab
find the max of a matrix when another matrix equals 1 in matlab
find the sum of all non positive prime numbers given an input in matlab
find the two largest values in a multidimensional list and discard other elements in matlab
greater than or equal to 0 and less than or equal to 100 in matlab
how to count from -1 to 101 in matlab
how to determine if a cell is empty in matlab
how to search a cell matrix for a empty row in matlab
how to turn nonzero elements in matrix to 1 in matlab
how to write if condition for a prime number in matlab
if clause with or's in matlab
if g is greter than 32 but less32.3 in matlab
if, else, if in matlab
list of subjects with at least one in matlab
make a matrix making sure that the second column from the left and second column from the right are equal to the column number in matlab
programme a calcualtor in matlab
sum values of the elements in vector that are lower than 26 without using the sum command in matlab
sums the values of those elements of “x” that are lower than 26. in matlab
while loop adjust uservalue while uservalue is less than 0 or greater than 80. if uservalue is greater than 80, then subtract 5 from uservalue. if uservalue is less than 0, then add 10 to uservalue in matlab
work out if a number is divisable by 4 in matlab
write a for loop that doubles the elements that are positive and are divisible by 3 or 5, and raises to the power of 3 the elements that are negative, but greater than -5 in matlab in matlab
write a program which uses a function to test if a given year is a leap year. your function should return a value of 0 if it is true that the year is a leap year and a value of 1 if it is false. in matlab
y=f(x) where x has different values. if x<0 y=sinx^2+ abs in matlab
gistlib
by LogSnag