I'm trying to create three curves, but my plot is blank
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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')
Réponse acceptée
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')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Performance dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!