Plotting 2D contours syntax
이전 댓글 표시
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!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

