Borrar filtros
Borrar filtros

Plot values above of 0

7 visualizaciones (últimos 30 días)
Alan
Alan el 15 de Jun. de 2012
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

Respuesta aceptada

Wayne King
Wayne King el 15 de Jun. de 2012
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 comentario
Alan
Alan el 15 de Jun. de 2012
Thanks, great idea!!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by