Saving the content of a cell array in different matrices automatically
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a cell array ( for example corr{150,1}). I want to creat matrices with incrementing name automatically such as
x1
x2
x3
which x1 = corr{1,1}
x2= corr (2,1}
x150=corr{150,1}
and save x1 x2 ... x150 seperately with separate names (x1 , x2 ... x15) in order to upload in a different toolbox.
4 Kommentare
Adam
am 20 Sep. 2019
Braph toolbox? I have no idea what this is so hard to say much more. You can potentially pass them in as a comma-delimited list from a cell array as e.g.
myCellArray{:}
but it still seems like an odd function that would expect 150 individual arguments.
Antworten (1)
Stephen23
am 20 Sep. 2019
Bearbeitet: Stephen23
am 20 Sep. 2019
I just skimmed through the BRAPH toolbox documentation from this website:
There is nothing that mentions requiring lots of numbered variables. In fact the example here:
clearly shows only one input argument to the method getSubjectData, so I very much doubt that you would find it useful to have lots of numbered variables. If you are planning on running/calling BRAPH toolbox many times, then you should just use indexing (or at a pinch dynamic fieldnames).
If this is not what the toolbox requires, then please give us the exact location in its documentation where it specifies how to "upload in a different toolbox" as you originally requested.
Siehe auch
Kategorien
Mehr zu Variables finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!