필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Assigne values to elements of an array

조회 수: 1 (최근 30일)
luca
luca 2019년 7월 24일
마감: Stephen23 2019년 7월 24일
Hi,
I have a vector v = [1 2 3 4 1 1 3 4] and I want to assign attributes to each of the value of the vector.
It means that every time I recall in a loop cycle one of the vector's element, I want also the possibility to recognize its attribute in the loop. The elements in the vector are numbers and not strings. 1 needs attribute A, 2 needs attribute B, 3 needs attribute C, 4 needs attribute D. So MATLAB should know that every time I call 1, it brings with him the value A (its attribute).
Thanks

답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by