MATLAB Answers

0

Comparing two vectors getting results in the new one

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

로그인 to comment.

태그

답변 수: 2

Answer by Birdman
on 17 Nov 2017
 Accepted Answer

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

  댓글 수: 0

로그인 to comment.


Answer by Mischa Kim
on 17 Nov 2017

V3 = V1 > V2

  댓글 수: 1

로그인 to comment.



Translated by