comparison of two column vectors
2 ビュー (過去 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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!