Save a variable that will have a different sized data

2 Ansichten (letzte 30 Tage)
pacharya
pacharya am 10 Jun. 2019
Beantwortet: Walter Roberson am 11 Jun. 2019
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!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 11 Jun. 2019
All_variable = {a, b, c, d, e};

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by