store values in a certain way
조회 수: 4 (최근 30일)
이전 댓글 표시
I would store values in a certain way like this:
For example I have values as [2 3] to this values I would connect to 2 a vector as [1 1 0 1 1] in the way when I get 2 I get also the vector
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2012년 9월 22일
편집: Azzi Abdelmalek
2012년 9월 22일
data(1).x=2
data(1).v=[1 1 0 1 1]
data(2).x=3
data(2).v=[0 1 0 0 1]
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!