Saving the content of a cell array in different matrices automatically

1 Ansicht (letzte 30 Tage)
Hessam A
Hessam A am 20 Sep. 2019
Kommentiert: Hessam A am 20 Sep. 2019
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
Hessam A
Hessam A am 20 Sep. 2019
Actually I want to import them to Braph toolbox
It just knows an individual matrix.I have the data of 150 people (signal-time series) in one cell array but for importing the data into Braph I should upload 150 matrices which each of them known as a different subject in order the toolbox works correctly.
Adam
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Stephen23
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.
  1 Kommentar
Hessam A
Hessam A am 20 Sep. 2019
Actually I want to upload my subjects as a different groups. 75 of the data are normal subjects and the rest is disorder.
In order to analyze them it must be two groups in the Braph and each of them contains the subjects separately.

Melden Sie sich an, um zu kommentieren.

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!

Translated by