Azzera filtri
Azzera filtri

How to Check dimension mismatch of an element?

2 visualizzazioni (ultimi 30 giorni)
tabw
tabw il 20 Ago 2014
Risposto: Iain il 20 Ago 2014
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

Risposta accettata

Iain
Iain il 20 Ago 2014
numel(q) < 3

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by