Filter löschen
Filter löschen

How to use function in the script of Matlab

1 Ansicht (letzte 30 Tage)
CHOI HYUNDUK
CHOI HYUNDUK am 13 Feb. 2019
Kommentiert: Walter Roberson am 13 Feb. 2019
I used matlab 2017 of academic version.
And I re-installed 2018b.
After that, when I run the script code that has a function in it, it ask me to make function.m file outside of script.
That is, new file function on the same folder.
But Before with 2017 version, I didn't get this problem
Could you give me some solution for this?
  4 Kommentare
CHOI HYUNDUK
CHOI HYUNDUK am 13 Feb. 2019
Yes, It's totally same.
It didn't happen this problem at the previous version.
Walter Roberson
Walter Roberson am 13 Feb. 2019
Nonetheless it is not permitted . The function name must be different than the script name . If an earlier release permitted it then it was a bug in the earlier release .

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

madhan ravi
madhan ravi am 13 Feb. 2019
It’s always a good idea to read the documentation:

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by