I have a 1000x1 array that ranges from 1 to 179.
Any values above 90 in this array I need to do 180 minus any of those values above 90.
I am not sure what I need to do to select those values in the array.
Thanks
Dave :)

 채택된 답변

Cris LaPierre
Cris LaPierre 2021년 9월 20일

0 개 추천

See Ch 5 of MATLAB Onramp (Indexing into and Modifying Arrays).
You will also find Ch 12 (Logical arrays) helpful for what you want to do.

댓글 수: 1

David Harra
David Harra 2021년 9월 20일
Thank you.
That was a great help. Don't think I done it very efficiently but I got where I had to be.
Dave :)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2021년 9월 20일

댓글:

2021년 9월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by