how to plot the graph of r vs t
Show older comments
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]
Answers (1)
Walter Roberson
on 5 Dec 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 Comments
Prabha Kumaresan
on 5 Dec 2017
Walter Roberson
on 5 Dec 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
on 5 Dec 2017
Categories
Find more on Title in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!