x = [-2:0.1:2]; z=x.*(a-x^2); plot(x,z)I want to plot(x, z) for four values of a = .5, 1, 1.3, 1.95. How to code it without writing same programme for different a four times.
MATLAB: Plot for different value of a
plot
plot
x = [-2:0.1:2]; z=x.*(a-x^2); plot(x,z)I want to plot(x, z) for four values of a = .5, 1, 1.3, 1.95. How to code it without writing same programme for different a four times.
Best Answer