gistlib
You can use the plot function in MATLAB to create a graph of y=x^2 as follows:
plot
main.mx = -10:0.1:10; % define the range of x values y = x.^2; % define the y values as x squared plot(x,y) % plot the graph 119 chars4 lines
x = -10:0.1:10; % define the range of x values y = x.^2; % define the y values as x squared plot(x,y) % plot the graph
This will create a graph of y=x^2 with the x-axis ranging from -10 to 10 in steps of 0.1.
gistlibby LogSnag