Plotting surface returns error
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Maciej Kupras
le 28 Nov 2022
Modifié(e) : millercommamatt
le 28 Nov 2022
Hi, I do have 2 vectors:
pbp_ss that has dimesions of 1x80 and is a double type
pbp_st that has dimesions of 1x50 and is a double type
And matrix:
stosunek_delta3_delta2 that is 50x80 double
When I try to plot a surface with code
surface(pbp_st,pbp_ss,stosunek_delta3_delta2);
Matlab returns an error of:
Warning: Error creating or updating Surface
Error in value of property ZData
Array is wrong shape or size
How can I solve this?
0 commentaires
Réponse acceptée
millercommamatt
le 28 Nov 2022
Modifié(e) : millercommamatt
le 28 Nov 2022
Your first two inputs need to be reversed. That is, the order in which they are provided to the function need to be switched.
0 commentaires
Plus de réponses (0)
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!