필터 지우기
필터 지우기

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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by