Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Validates function inputs in MATLAB using arguments blocks, covering size, class, repeating arguments and name-value forwarding.
86% 100%+14 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 19 of 22 without it.
Write a MATLAB argument validation block for a parameter `alpha` requiring a scalar float bounded between 0.0 and 1.0 inclusive, using the built-in range validator introduced in MATLAB R2025a.
The arguments block uses the mustBeBetween validator for alpha.
This test ran on v3. v4 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Write robust MATLAB functions using arguments blocks with correct semantics for size, class, repeating arguments, and property import.
arguments blockarguments (Repeating))inputParser or validateattributesmustBeA, and validatorsmatlab-build-app)matlab-write-tests)if/error guard clauses for runtime invariants inside a function body
(those aren't input validation — leave them as-is unless the user asks for an
arguments block specifically).mlx (Live Script) or .mlapp (App Designer) files — these are binary
ZIP containers. Don't unzip them or attempt structural edits. If the user
asks to add an arguments block to a function inside one, ask them to
export to plain .m first, or open the file in MATLAB and edit it there.These are things the agent commonly gets wrong. Read these FIRST.
WRONG belief: (1,:) rejects column vectors with an error.
ACTUAL behavior: MATLAB silently reshapes the input to fit the declared size.
function out = myFunc(x)
arguments
Next to this one in the catalogue, plus more from the same author.