Clear Filters
Clear Filters

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

1 view (last 30 days)
%for example a vector x with values greater than 0, and length of 3

Answers (1)

Elias Gule
Elias Gule on 1 Nov 2018
isValid = all(x>0) && length(x)==3;


Find more on Loops and Conditional Statements in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!