Guide Creation File Save Error

2 visualizzazioni (ultimi 30 giorni)
Michael
Michael il 4 Ago 2017
Hello,
I haven't tried to create an interface in a while so I could be doing something incorrect; however, I startup guide select new. Next I drag the axis plot icon onto it. Finally, I just go to save as or save and I get errors, see attached image. What am I doing incorrectly?

Risposta accettata

Sindhu Yerragunta
Sindhu Yerragunta il 7 Ago 2017
Hi Micheal,
This error message has two possible causes:
1. There is a user-defined function (.m file) that conflicts with a built-in MATLAB function.
For example, a user-defined function in a file named "plot.m" would conflict with the built-in MATLAB function "plot".
To resolve this issue, rename the user-defined function so it does not conflict with the built-in MATLAB function.
To determine the location of the function, open MATLAB and run the following command:
>> which -all <function name>
2. You are trying to provide inputs to a function, but have not defined it using the MATLAB function declaration.
For example, if the file "test1.m" is created without defining test1 as a function, and it is then passed an input argument, e.g.
>> test1(5:10)
This will cause the error if test1 was not previously defined as a function.
Hope this resolves the issue.
-Sindhu

Più risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by