create a vector with numbers between 10 and 25 in matlab

You can create a vector with numbers between 10 and 25 in Matlab using the following code:

main.m
vector = 10:25;
16 chars
2 lines

This will create a row vector with integer values from 10 to 25 at increments of 1. If you want to specify a different increment, you can modify the code accordingly:

main.m
vector = 10:0.5:25;
20 chars
2 lines

This will create a row vector with values from 10 to 25 at increments of 0.5.

related categories

gistlibby LogSnag