Can you combine multiple variables into one variable using &&?

조회 수: 1 (최근 30일)
Robert A Easter
Robert A Easter 2020년 11월 28일
답변: Walter Roberson 2020년 11월 28일
I want to combine multiple variables I have defined into one overall variable. Is that possible by using &&?
  댓글 수: 3
Robert A Easter
Robert A Easter 2020년 11월 28일
So I defined multiple variables seperately and was wondering if it was possible to create a variable with all of these combined within it so that way I can display all of these variablles at once when I call that one variable. I thought I could put all of these separate variables together in one variable with && but I am not sure.
dpb
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
Walter Roberson 2020년 11월 28일

카테고리

Help CenterFile Exchange에서 Foundation and Custom Domains에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by