changing values in an array
조회 수: 3 (최근 30일)
이전 댓글 표시
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 :)
댓글 수: 0
채택된 답변
Cris LaPierre
2021년 9월 20일
You will also find Ch 12 (Logical arrays) helpful for what you want to do.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!