Error using plot, vectors must be the same lengths?
Ältere Kommentare anzeigen
g = 9.81;
theta = pi/4;
v = 400;
tmax = ((2*v*sin(theta))/g);
[x, y, t] = projectileMotion(400, pi/4);
[dfx] = derivative(t, y);
[ddfx] = derivative(t, dfx);
plot(y, dfx, ddfx)
xlabel('Time (sec)')
ylabel('y, dy, ddy')
title('Position, Velocity and Acceleration in vertical direction')
When i do this I get the error in the title, please help. Im calling functions that I have already made.
2 Kommentare
Ridwan Alam
am 6 Dez. 2019
what is the size of y, dfx, and ddfx?
Michael Buls
am 6 Dez. 2019
Bearbeitet: Michael Buls
am 6 Dez. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!