フィルターのクリア

How to Check dimension mismatch of an element?

1 回表示 (過去 30 日間)
tabw
tabw 2014 年 8 月 20 日
回答済み: Iain 2014 年 8 月 20 日
My question is a not very clear.
EG let s say, q , 1X2 array. q(1)=1 q(2)=2 q(3) does not exist
What I want is that I need to Check q(3) exist or not. If q(3) does not exist, break the while loop.
How to write the code to do that
I tried t=isempty(q(3)); However, it is not empty but not existing. So how to do that?
Thanks

採用された回答

Iain
Iain 2014 年 8 月 20 日
numel(q) < 3

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by