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

3 visualizaciones (últimos 30 días)
%for example a vector x with values greater than 0, and length of 3
x>0;
length(x)=3;

Respuestas (1)

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

Categorías

Más información sobre Argument Definitions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by