How do write a function within the same main code
Show older comments
Hello everybody,
I want to know if it is possible to write a function within the same main code rather than write it in separate M file.
Thanks in advance for any help.
Accepted Answer
More Answers (1)
Paulo Silva
on 8 Apr 2011
1 vote
yes with subfunctions
1 Comment
Matt Tearle
on 9 Apr 2011
Or nested functions
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!