functions within the script
2 views (last 30 days)
Show older comments
Commented: Rashid Hussein on 27 Jun 2021
i wanted to call the same function several times but with different variables eachtime in the same script
i want when run the script to have all results at once but it shows this error message
Error: File: myhot.m Line: 5 Column: 2
This statement is not inside any function.
(It follows the END that terminates the
definition of the function "myfunction".)
Stephan on 27 Jun 2021
Edited: Stephan on 27 Jun 2021
More Answers (1)
Image Analyst on 27 Jun 2021
Put the script first, not after the function. And make sure the function ends with an "end" statement.
Find more on File Operations 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!