フィルターのクリア

Plot values above of 0

1 回表示 (過去 30 日間)
Alan
Alan 2012 年 6 月 15 日
I'd like to plot a 3d-graph (stem3) but using only values above of 0 matrix is arrangement
0 25 3 5
2 34 2 6
0 56 0 3
so on I'd like to plot just values above of 0 Thanks

採用された回答

Wayne King
Wayne King 2012 年 6 月 15 日
Do you want to keep the arrangement of the matrix in the stem plot? If so, one thing you can do is to set the 0s to NaNs
Let X be your matrix above.
Y = X;
Y(X==0) = NaN;
stem3(Y)
Does that give you want you want?
  1 件のコメント
Alan
Alan 2012 年 6 月 15 日
Thanks, great idea!!!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by