Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
moving a value under a certain value
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
A have a structure with a cell aray called textdata. The cells in column 2 are filled with the words abc or efg. In the case a cell of this column contains efg, I like to replace the value from column 3 (same row) with the value of column 4. How can I do that? Thank you
8 Kommentare
Antworten (1)
Walter Roberson
am 9 Apr. 2018
mask = strcmp(raw(:,2), 'efg');
raw(mask, 3) = raw(mask, 4);
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!