gistlib
other matlab categories
conditional statement code snippets in matlab
check if number is between two values in matlab
create a loop that ) 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 step function in matlab
find 0<=t<=t when t = randi([200 600])/10; in matlab
for as long as i is smaller or equal in matlab
if else greater than in matlab
remove numbers in an array that are equal to the previous number in matlab
write a loop sums the values of those elements of “x” that are lower than 26. in matlab
gistlib
by LogSnag