possible to use logical indexing with an array argument ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
RuiQi
am 17 Jan. 2017
Kommentiert: John Chilleri
am 18 Jan. 2017
is there a way I can convert this code
for i=1:15653
label == i
end
to a vectorized one ?
i=1:15653;
label == i
1 Kommentar
Akzeptierte Antwort
John Chilleri
am 17 Jan. 2017
Bearbeitet: John Chilleri
am 17 Jan. 2017
Hello,
WhateverYouWant = (label == 1:15653);
Note: assuming label is also a 15653 length vector OR a scalar.
Hope this helps!
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels 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!