How to create your own function handling in MatLab? -- MatLab
How to create your own function handling in MatLab? -- MatLab
[Ans]
assign it to target function.
e.g.
function y = computeSquare(x) y = x.^2; end
f=computerSquare(x)
e.g.h = @ones;
%they are equivalent
a = h()
a=h
more details on:
Create Function Handle - MATLAB & Simulink (mathworks.com)
Comments
Post a Comment