Comparing two vectors getting results in the new one
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Adam Kepinski
am 17 Nov. 2017
Kommentiert: Adam Kepinski
am 17 Nov. 2017
Hi,
I want to compare two arrays (10000x1) and get a third one with values either 1 (V1>V2) or 0 (V1<V2). Anybody could help?
Thanks
0 Kommentare
Akzeptierte Antwort
Birdman
am 17 Nov. 2017
c=a>b
This will return 0(for a<b) and 1(for a>b), 10000x1 logical array.
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays 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!