You can create a 1x100 row vector of x-values ranging from -15 to 0 using the linspace
function in Matlab. The linspace
function takes in the starting point, ending point, and number of points to generate, and returns a row vector with evenly spaced values.
34 chars2 lines
This will create a row vector x_values
with 100 evenly spaced values ranging from -15 to 0. You can then use this vector for plotting or other operations.
gistlibby LogSnag