フィルターのクリア

How do I compare two matrices on a table to see which one has a higher value?

2 ビュー (過去 30 日間)
Lakyn
Lakyn 2016 年 8 月 21 日
コメント済み: Lakyn 2016 年 8 月 21 日
Hi all,
So my problem here is that I have two matrices, 76x2000 for both (lets call them A and B). What I want to do is to have a table with two columns including the two matrices, and then compare them to see whether B is always higher than A. How do I write this into a function?
Thank you very much!
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 21 日
A table with two columns including the two matrices 76x2000 ! How is this possible?
Lakyn
Lakyn 2016 年 8 月 21 日
Maybe not necessarily a table. But I need a way to compare the two 76x2000 matrice to see which one is higher.

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

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 21 日
Maybe you need this
M=[A(:) B(:)]
idx=diff(M,[],2)
  1 件のコメント
Lakyn
Lakyn 2016 年 8 月 21 日
Sorry, but what does the second line of the code do?

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by