How to plot multiple Contours in a 'parent' Figure.
Afficher commentaires plus anciens
Hi
I have 3D matrix (32*101*5) that I want to plot a contour for each of 5 planes of data in one figure in a 'for' loop. But when I run the code this error comes up:
(( Unable to use a value of type 'matlab.ui.Figure' as an index)).
I appreciate your helps
3 commentaires
Adam
le 16 Août 2019
Well, we have no idea where you are using a matlab.ui.Figure as an index as you didn't show us your code...
dpb
le 16 Août 2019
Show us the code section you're trying to use...and the full error message in context.
NB: If you try this on a 2D axes, unless the data are unusual you'll probably just end up with a mess...maybe you're looking for countour3 where you use the plane numbers and the Z elevation?
Hossein Khanjari
le 16 Août 2019
Modifié(e) : Geoff Hayes
le 16 Août 2019
Réponses (1)
Steven Lord
le 16 Août 2019
0 votes
I suspect you have a variable named set (or maybe one named axes) in your workspace that's taking precedence over the built-in set or axes functions. Rename or remove that variable.
Catégories
En savoir plus sur Contour Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!