フィルターのクリア

How to compare 2 matrix ?

1 回表示 (過去 30 日間)
Muhammad Hafiz
Muhammad Hafiz 2017 年 10 月 27 日
コメント済み: Adam 2017 年 10 月 27 日
I want to compare 2 matrix like this. for example first matrix I have 20 data and second matrix I have 100 data. can anyone help me ?
  8 件のコメント
Muhammad Hafiz
Muhammad Hafiz 2017 年 10 月 27 日
you can see the picture I put on my question? there are have 2 tables and I want to compare both of them to find the smallest value. can you help me :(
Adam
Adam 2017 年 10 月 27 日
You just keep repeating the same phrases though. If you want help you have to give details that allow people to help you. Just keep saying 'compare' is meaningless.
If you just want to find the minimum value across two different vectors then this is easy, but that isn't what I thought you wanted originally.
a = rand(20,1);
b = rand(100,1);
smallestVal = min( [a; b] )
will achieve that.

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2017 年 10 月 27 日
doc ismember and ismembertol

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by