How to increase number of lines in contour plots?

68 ビュー (過去 30 日間)
Supreeth
Supreeth 2013 年 3 月 7 日
編集済み: Tom McLeay 2015 年 8 月 6 日
Hi. I am trying to use 'ezcontour'. I want to know how to increase number of lines that appear in these contour plots. Thanks.

回答 (2 件)

nanren888
nanren888 2013 年 3 月 7 日
help contour?
... contour(Z, N) and contour(X, Y, Z, N) draw N contour lines, ...
... contour(Z, V) and contour(X, Y, Z, V) draw LENGTH(V) contour lines at the values specified in vector V. ...
Did I miss your point?

Tom McLeay
Tom McLeay 2015 年 8 月 6 日
編集済み: Tom McLeay 2015 年 8 月 6 日
THe 'N' parameter does not apply to ezcontour, only contour.
Use the Level Step parameter, e.g.:
>> h=ezcontour(@(x,y)pdf(obj,[x y]),[-3 5],[-4 5],100);
>> h.LevelStep=0.01;
It is also convenient to use a custom list, such as:
>> h.LevelList=[0.001 linspace(0,0.12,20)];

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by