create a 1 x 100 vector of x values according to -15<x<0 in matlab

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.

x_values = linspace(-15, 0, 100);
34 chars
2 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.

related categories

gistlibby LogSnag