how to plot the graph of r vs t
Afficher commentaires plus anciens
r=[10 20 30]
t=[40 50 60];
figure;
plot(r,t)
xlabel('r')
ylabel('t')
for the above code how to plot the graph of
- r=10 vs t=[40 50 60]
- r=20 vs t=[40 50 60]
- r=30 vs t=[40 50 60]
Réponses (1)
Walter Roberson
le 5 Déc 2017
r = [10 20 30]
t = [40 50 60];
[R, T] = meshgrid(r, t);
plot(R, T)
You might possibly need ndgrid() instead of meshgrid()
3 commentaires
Prabha Kumaresan
le 5 Déc 2017
Walter Roberson
le 5 Déc 2017
Okay so if you plot with those limits extracted from r and t, then what should be the line plotted in each case?
Prabha Kumaresan
le 5 Déc 2017
Catégories
En savoir plus sur Title dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!