How to merge several 2D plots and make a single 3D plot if vector lengths are not same.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to plot a 3D plot. for which I want to combine 20 2D plots(20 because I need >15 only for my work).
for 2D plots for these 20 different instances I have created two 20X5 matrix( tau and a ).where each row of tau contains value of X axis and each row of a contains particular Y axis value.
Now for 2D plots I can easily get plot by plot(tau(i,:),a(i,:)) ,where i can be anything between 1 to 20.but what to do if I want all these 2d plots arranged one by one from i=1 to 20. Plotting 3D as surface would be good.
I tried other commands given in other answers but I did not get my desired plot because in most of the cases commands require X,Y,Z to be vectors of same length. but in my problem vector lengths are not same.
please provide suggestions and command , how to solve this issue.
0 Kommentare
Antworten (1)
Cameron B
am 18 Jan. 2020
Can you provide some of your data? That way, we could get a better idea of the min/max values for x and y and determine if interpolation or something similar could help.
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!