Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to perform a series of replacements in an array based on whether a separate condition is satisfied?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to piece together a series of replacements if a separate condition is satisfied, specifically:
If array x (table with variables, and variable 5 contains numbers such as 10, 30, 40, 60) contains 35, then - replace all '60' with 'z1' - replace all '40' with 'z2' - replace all '30' with 'z3'
If not, - replace all '60' with 'y1' - replace all '40' with 'y2' and so forth...
댓글 수: 2
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!