필터 지우기
필터 지우기

Comparing two vectors getting results in the new one

조회 수: 1 (최근 30일)
Adam Kepinski
Adam Kepinski 2017년 11월 17일
댓글: Adam Kepinski 2017년 11월 17일
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에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by