Compare all elements in a matrix with elements in array

I have a matrix A with numbers on the 7 point scale (-3 0 2 4 7 10 12). If a number in this matrix A is ex 5, i would like to tell the user where there is a number which is different from a number on the scale. If all numbers are correct the program shall just display ('well done')

回答 (1 件)

James Tursa
James Tursa 2015 年 11 月 20 日

0 投票

See if this helps do what you want:
doc ismember

この質問は閉じられています。

質問済み:

2015 年 11 月 20 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by