Randomizing the columns in a row

1 Ansicht (letzte 30 Tage)
Simone de Winter
Simone de Winter am 7 Apr. 2020
Bearbeitet: KALYAN ACHARJYA am 7 Apr. 2020
Hi All,
I have imported a table into MATLAB(See example). Now I would like MATLAB to randomize the columns for each row, but the rows stay in the same place. So only the columns in a row get randomized. Further I would like to exclude the first column for the randomization, as these are the filenames and it would be easier if they stay in the first column of the row. Is this possible to do in for multiple rows in one go in MATLAB?
Cheers,
Simone
  1 Kommentar
KALYAN ACHARJYA
KALYAN ACHARJYA am 7 Apr. 2020
Bearbeitet: KALYAN ACHARJYA am 7 Apr. 2020
You may, one way to access the row, then table2array followed by randperm

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Type Identification 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