I'm trying to create three curves, but my plot is blank

1 vue (au cours des 30 derniers jours)
J-Stin
J-Stin le 2 Mar 2021
Commenté : Rik le 2 Mar 2021
mi = (2814:1000:19781);
c = 2080;
c(2) = 1580;
c(3) = 2580;
v = c*log(19781/2814);
figure(3)
plot(mi,v);
hold on
plot(mi,v,'.m');
hold on
plot(mi,v,'-');
xlabel('kg')
ylabel('m/s')
title('Q9 plots')
legend('c=2080','c=1580','c=2580')
  1 commentaire
Rik
Rik le 2 Mar 2021
If the answer didn't solve your issue, why did you accept it? Have a read here and here. It will greatly improve your chances of getting an answer.
Feel free to comment with clarifications instead of flagging your question.

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 2 Mar 2021
Modifié(e) : KSSV le 2 Mar 2021
Code looks meaning less though.
mi = [2814 1000 19781];
c(1) = 2080;
c(2) = 1580;
c(3) = 2580;
v = c*log(19781/2814);
figure(3)
plot(mi,v);
hold on
plot(mi,v,'.m');
hold on
plot(mi,v,'-');
xlabel('kg')
ylabel('m/s')
title('Q9 plots')
legend('c=2080','c=1580','c=2580')

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by