Hey guys, please i need help on how to validate a vector using a while loop

2 ビュー (過去 30 日間)
Brenda Egbe
Brenda Egbe 2018 年 11 月 1 日
コメント済み: Brenda Egbe 2018 年 11 月 1 日
%for example a vector x with values greater than 0, and length of 3
x>0;
length(x)=3;

回答 (1 件)

Elias Gule
Elias Gule 2018 年 11 月 1 日
isValid = all(x>0) && length(x)==3;

カテゴリ

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