Putting array in function to graph
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to graph this using the M array as input values
%For graph
x = 0 : 0.1 : 2;
y = 0.7*(x.^2)*(1+0.2*(x.^2))^-3.5
figure(1)
plot(x,y)
grid
This error is returned:
Error using ^ (line 51)
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power
is a scalar. To perform elementwise matrix powers, use '.^'.
Error in aero (line 3)
y = 0.7*(x.^2)*(1+0.2*(x.^2))^-3.5
It was also not working trying to retrive N's values and not graphing. What am I doing wrong?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Directed Graphs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!