how can i plot this point??????!!!!!

1 visualización (últimos 30 días)
ali hadjer
ali hadjer el 22 de Nov. de 2015
Respondida: the cyclist el 22 de Nov. de 2015
heyy i have a matrix of two rows(net(2,:)is the absis x and net(3,:) the absis y) i want to plot the point corespondance of this matrix but i eliminate the point whos have (0,0)for exemple
M=[1 2 3 4, 2 3 0 4, 5 6 0 9]
WHN I PLOT I WANT HAVE 3 POINT (2,5)(3,6)(4,9) AND ELIMINATE THE POINT (O,O) and generated in new matrix
M=[1 2 4, 2 3 4,5 6 9]

Respuesta aceptada

the cyclist
the cyclist el 22 de Nov. de 2015
M = [1 2 3 4;
2 3 0 4;
5 6 0 9];
indexToRemove = M(2,:)==0 & M(3,:)==0;
M(:,indexToRemove) = [];

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D 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