Plotting 2D contours syntax
Afficher commentaires plus anciens
folks,
I have a few novice questions with plotting the following function:

My codes is:
zfun = @(x1,x2) x1./(x2.*(1-x1)-1);
zhandle = fcontour(zfun)
- Is this the correct way to plot the contour? I am mainly concenred with having the "dot" after the variable.
- Why do I get an error when I do this?
zfun = @(x1,x2) x1./(x2.*(1-x1.)-1);
zhandle = fcontour(zfun)
3. Is there a way to see how the contour changes, say fixing x2? For example, I would like to fix x2 to be say .5, and see how the contour plot changes with x1. Of course, this is just 1D plot, but is there a way to aggregate these graphs? is mesh the way to go?
Thanks in advance!
Réponse acceptée
Plus de réponses (0)
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!

