How to merge several 2D plots and make a single 3D plot if vector lengths are not same.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Cameron B
le 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.
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots 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!