필터 지우기
필터 지우기

HOW TO COMPARE THE TWO DIFFRENT ARRAYS ELEMENTS IN MATLAB

조회 수: 2 (최근 30일)
hi HOW TO COMPARE THE TWO DIFFRENT ARRAYS ELEMENTS IN MATLAB a=[1 2 3 4 5 5] b=[1 2 4 5 3 6] this two are the inputs
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 12일
what is the expected result?
Matt Fig
Matt Fig 2012년 9월 12일
Kesavan, You need to be more precise. Did you see what I wrote in my answer below? So explain in what way you want to compare elements.

댓글을 달려면 로그인하십시오.

채택된 답변

Matt Fig
Matt Fig 2012년 9월 12일
편집: Matt Fig 2012년 9월 12일
It depends on what you mean by "compare elements" in your application.
A = [3 4]; % An array. Let's "compare" elements...
A(1)>A(2)
A(1)<A(2)
A(1)==A(2)
  댓글 수: 1
Matt Fig
Matt Fig 2012년 9월 12일
And in what way do you want to compare them? Look at what I wrote above, think it over, write a comment that clearly shows what you want to do!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Converters (High Power)에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by