%Clear memory
clear;%Number of points
N = 10000;%Preallocate memory
x = zeros(1,N);y1 = zeros(1,N);x = -5 + (5+5)*rand(1,N);y1^2 = x^2 + 1;plot(x,y1), grid on;
I get the following error:
The expression to the left of the equals sign is not a valid target for an assignment.
How can I plot this first on x,y axis, then on x^2 and y^2?
Thanks in advance.
Best Answer