when i write functions in matlab it not recognizing?
Show older comments
function [hNest,hLocal] = functionsExample(v)
hNest = @nestFunction;
hLocal = @localFunction;
function y = nestFunction(x)
y = x + v;
end
end
function y = localFunction(z)
y = z + 1;
end
2 Comments
Jan
on 24 Oct 2021
This is some code. What is the problem? Do you get an error message? If so, which one? When does the message appear, or in other words: how do you call this function?
Aravind Mallemputi
on 24 Oct 2021
Accepted Answer
More Answers (0)
Categories
Find more on Programming 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!