how to set multiple fields in a struct without using a loop
이전 댓글 표시
Hello guys, I have the next problem, I want to make something like this:
A={'A1';'A2';'A3'};
them make B=somefunction(B,A); and obtain this:
B =
A1: []
A2: []
A3: []
Any idea?
댓글 수: 4
José-Luis
2014년 6월 6일
I don't understand. What's B?
Lisandro Jimenez
2014년 6월 6일
José-Luis
2014년 6월 6일
B is a struct with fields A1, A2 and A3?
Lisandro Jimenez
2014년 6월 6일
채택된 답변
추가 답변 (1개)
Lisandro Jimenez
2014년 6월 6일
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!