comparison of two column vectors
조회 수: 6 (최근 30일)
이전 댓글 표시
sir/madam i have two column vectors, i want to compare element by element and want to know which is large or small.
please help me, how can i write command for it.
댓글 수: 0
답변 (1개)
per isakson
2022년 4월 9일
편집: per isakson
2022년 4월 9일
An example
%%
v1 = rand( 6,1 );
v2 = rand( 6,1 );
%%
v1 > v2
This result tells us that the first, fourth, fifth and sixth element of v1 are larger than the corresponding elements of v2
댓글 수: 8
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!