How can i compare two columns ?

Hello, I have a question like this :
I Have one column which containes about 300 numbers and its values are changing in every hour.
also i have some constant value which i must compare to this column.
For example :
A=[0 300 4500 300 500 700 1250 2500 4500 2500 .....] (300 numbers)
B=[3000] which is a constant number.
i must compare every member of A to B and write those numbers in another sheet, which is equal or above to 3000.
if you have some ideas how to write this mini code, please write and help me, because its very important FOR me :(
Thanks a lot !!!

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2019 年 7 月 27 日

0 投票

out = A(A => 3000);

1 件のコメント

NinoOK
NinoOK 2019 年 7 月 28 日
Thank you for the reply

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

カテゴリ

ヘルプ センター および File ExchangeData Import from MATLAB についてさらに検索

製品

質問済み:

2019 年 7 月 27 日

コメント済み:

2019 年 7 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by