how to plot the graph of r vs t
Mostrar comentarios más antiguos
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]
Respuestas (1)
Walter Roberson
el 5 de Dic. de 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 comentarios
Prabha Kumaresan
el 5 de Dic. de 2017
Walter Roberson
el 5 de Dic. de 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
el 5 de Dic. de 2017
Categorías
Más información sobre Title en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!