Use "function name" (add, ...) to call this function but it is added

Hi I have a problem that I have been trying to solve for days...
I am implementing the XSteam Program from matlab into an app. Therefore I need to make a few adjustments.
For several functions (around 20% of all functions) I am getting the error message as shown in the first picture. The occuring error message when I run the program is shown in the second picture.
Does anybody have an Idea how to solve this ?
Greetings
Maurice

 Respuesta aceptada

I notice that the function x4_ps looks like this:
function x4 = x4_ps(~,p,s)
% ^ indicating the first input is unused
If x4_ps is a method of your app, then the first input argument is the app object itself.
Try replacing that "~" with "app" there and in any other functions with the same problem, and see if that fixes it.
If not, please upload your .mlapp file, using the paperclip icon.

3 comentarios

Hoooly crap that worked. Thank you!!! I thought because matlab proposed to replace the app with '~' it is okay.
You're welcome!
Maybe app was unused in the function when MATLAB suggested to replace it with '~'?
Probably

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Preguntada:

el 14 de Dic. de 2022

Comentada:

el 18 de Dic. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by