Increasing contour levels non-linearly

1 回表示 (過去 30 日間)
Huichen Zhang
Huichen Zhang 2016 年 11 月 8 日
コメント済み: Huichen Zhang 2016 年 11 月 8 日
I am writing a CFD code. The output of the stream function contour shows this,
This is because at the two corners, the stream function value is almost 0.0001 level, or 0.00001, which are very small. I have shown the detailed values of the stream function in the excel attachment.
However, I want to get my stream function contour look like this,
Where the details at the two bottom corners are shown as well.
How should I achieve this?

採用された回答

Brendan Hamm
Brendan Hamm 2016 年 11 月 8 日
You can control the levels which are displayed by using the syntax:
contour(Z,levels)
where Z is the data and levels define the contour levels. Likely you want to use log-spaced data and not linearly spaced (which contour uses by default).
levels = logspace(-5,-1,11); % 11 points from 10^-5 to 10^-1
contour(Z,levels)
  1 件のコメント
Huichen Zhang
Huichen Zhang 2016 年 11 月 8 日
Thank you! Very helpful!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputational Fluid Dynamics (CFD) についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by