Can argument validation check if size is at least some value?
Show older comments
I understand that the arguments block can check if an argument is exactly a given size, but is there a way to check if an array is at least a certain size? (without using a custom validation function)
Example
arguments
a (:,4) % must be exactly 4 columns
b (:, >=4) % must have at least 4 columns
end
Accepted Answer
More Answers (1)
b = 1:5;
v = size(b,2) >= 4
b = 1:3;
v = size(b,2) >= 4
Categories
Find more on Argument Definitions 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!