Gistlib Logo

gistlib

count from -100 to 101 in matlab

main.m
for i=-100:101
    disp(i);
end
32 chars
4 lines

The above code defines a for loop from -100 to 101 inclusive and prints each number to the console using the disp() function.

similar matlab code snippets

how to count from -1 to 101 in matlab
how to calculate the binomial distribution in matlab
how to calculate the 99th percentile in matlab
how to calculate cumulative distribution function in matlab
how to perform a ztest in matlab
how to calculate the normal distribution in matlab
how to plot the binomial distribution in matlab
calculate the area of a triangle in matlab
calculate the area of a sphere in matlab
find the slope of a set of points in matlab

related categories

matlab
for loop
counting

gistlibby LogSnag