Hello all,
I'm using a matlab function within my stateflow diagram, however I'm getting the error "Undefined function or variable 'inputParser'". When I try to run the function within a .m file it works fine. I cannot find any limitations to inputParser usage in stateflow within the help files or by google.
Code:
function x = OK(i) default = 1:50; p = inputParser; addOptional(p,'i',default); parse(p,i); if all(Input_Mux(i)== enumState.OK) x = true; else x = false; endend
Does anyone know why this is failing?
Best Answer