how to extract some elements in the array using matlab?

1 visualización (últimos 30 días)
M.S. Khan
M.S. Khan el 3 de Dic. de 2020
Editada: M.S. Khan el 3 de Dic. de 2020
I have an array vector. i want to extract some elements.
How will i perform. Please help me. Regards for all your coopeartion.
how to extract only the elements which are in the range between 0 and 3.
Slice_z
Slice_z = Slice_z(Slice_z >= 0 && Slice_Z<=3)

Respuesta aceptada

Deepak Gupta
Deepak Gupta el 3 de Dic. de 2020
Hello Mr. Khan,
Slice_z = Slice_z(Slice_z >= 0 & Slice_Z<=3)
Should work.
Cheers,
Deepak
  1 comentario
M.S. Khan
M.S. Khan el 3 de Dic. de 2020
Editada: M.S. Khan el 3 de Dic. de 2020
Hi Dear Deepak Gupta, thanks for your kind cooperation. Regards

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graph and Network Algorithms en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by