필터 지우기
필터 지우기

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)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by