Comparing two vectors getting results in the new one

1 次查看(过去 30 天)
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

采纳的回答

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

更多回答(1 个)

Mischa Kim
Mischa Kim 2017-11-17

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by