Problems in running functions

3 views (last 30 days)
Muazma Ali
Muazma Ali on 24 Sep 2019
Edited: per isakson on 25 Sep 2019
Hi
Dont know what the problem is yesterday I couldnt save the functions in Matlab and now not able to run them...
  3 Comments
Michal
Michal on 24 Sep 2019
None of us have a crystal ball to see what you actually have a problem with ... :)
Steven Lord
Steven Lord on 24 Sep 2019
What happens when you try to save a function in MATLAB? If you receive an error (red text) and/or a warning (orange text) show us the full and exact text of those messages. The exact text may tell us the cause of the problem you're experiencing and/or suggest ways to resolve it.
Once you're able to save a function, what happens when you try to run that function? Again, if you receive an error or warning message show us the full and exact text.
Also tell us or show us exactly how you're trying to run that function. If you type the name of the function (with input arguments?) in the MATLAB Command Window, show us what you typed. If you ran it via the Run button in the Editor, tell us that. If you're trying to run it some other way, show us what you're doing if possible and tell us what you're doing if it's not possible to show.
I'll give you a simple function to try to run. Run this using your usual procedure.
function helloWorld
disp('Hello world!')
end

Sign in to comment.

Answers (0)

Categories

Find more on Introduction to Installation and Licensing 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!