how to extract some elements in the array using matlab?

조회 수: 1 (최근 30일)
M.S. Khan
M.S. Khan 2020년 12월 3일
편집: M.S. Khan 2020년 12월 3일
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)

채택된 답변

Deepak Gupta
Deepak Gupta 2020년 12월 3일
Hello Mr. Khan,
Slice_z = Slice_z(Slice_z >= 0 & Slice_Z<=3)
Should work.
Cheers,
Deepak
  댓글 수: 1
M.S. Khan
M.S. Khan 2020년 12월 3일
편집: M.S. Khan 2020년 12월 3일
Hi Dear Deepak Gupta, thanks for your kind cooperation. Regards

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by