Problems with Nested functions
3 views (last 30 days)
Show older comments
having lots of trouble with my program, alot of them would be solved if I could use nested functions, however my program will not let me use nested functions. Why? and anyways around this?
Function startup
load Exampledata.mat
function example
disp('hello world')
end
end
something even this simple will not work! Error result is
Error using load Attempt to add "clims" to a static workspace. See MATLAB Programming, Restrictions on Assigning to Variables for details.
Error in program (line 3) load ExampleData.mat
0 Comments
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 21 May 2013
Check if ExampleData.mat is in your current folder
dir ExampleData.mat
0 Comments
See Also
Categories
Find more on Function Creation 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!