Save a variable that will have a different sized data

조회 수: 2 (최근 30일)
pacharya
pacharya 2019년 6월 10일
답변: Walter Roberson 2019년 6월 11일
Hello Everyone,
I am trying to save data (in a row/column) in a single variable? For example, I have five variables, a, b, c, d, e and each has a different size (length). I want to save their data on a single variable, say All_variable such that the All_variable should be 1x5 cell in which each cell should have the data (of different size) of the five previously mentioned variables.
Thank you!

채택된 답변

Walter Roberson
Walter Roberson 2019년 6월 11일
All_variable = {a, b, c, d, e};

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by