To create the array x with values ranging from -10 to 1 with an increment of 0.01, you can use the linspace function in Matlab as follows:
main.m28 chars2 lines
The function takes three arguments: the start value (-10), the end value (1), and the number of points to generate (1001, which is equivalent to (1 - (-10))/0.01). The resulting array will have 1001 equally spaced values ranging from -10 to 1.
gistlibby LogSnag