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

조회 수: 1(최근 30일)
%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;

태그

Community Treasure Hunt

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

Start Hunting!

Translated by