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 个评论
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 个)

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by