MATLAB Answers

Comparing two vectors getting results in the new one

38 views (last 30 days)
Adam Kepinski
Adam Kepinski on 17 Nov 2017
Commented: Adam Kepinski on 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 Comments

Sign in to comment.

Accepted Answer

Birdman
Birdman on 17 Nov 2017
c=a>b
This will return 0(for a<b) and 1(for a>b), 10000x1 logical array.

  0 Comments

Sign in to comment.

Tags


Translated by