Using Matlab R2017b, I can not define a function; I thought this was fixed in R2016b. Yes, I can define a script file.
>> function y = mydouble(x) function y = mydouble(x) ↑Error: Function definitions are not permitted in this context.
function contextMATLAB and Simulink Student Suite
>> function y = mydouble(x) function y = mydouble(x) ↑Error: Function definitions are not permitted in this context.
Best Answer