Can you combine multiple variables into one variable using &&?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to combine multiple variables I have defined into one overall variable. Is that possible by using &&?
댓글 수: 3
dpb
2020년 11월 28일
That's still pretty nebulous but a cell array would hold the three variables as cells; it wouldn't "display" (again, whatever that means to you) them all at once.
If the variables are of commensurate sizes and same type then you could combine vectors into array/matrix or 2D array/matrices into 3D.
Or, there's the table if types are different but lengths a commensurate.
Again, it all depends on what you really mean.
답변 (1개)
Walter Roberson
2020년 11월 28일
No, you would use & instead of && . See https://www.mathworks.com/matlabcentral/answers/95028-how-can-i-create-a-latex-table-from-a-matlab-array
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Foundation and Custom Domains에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!