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

 채택된 답변

Voss
Voss 2022년 12월 15일
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

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 '~'?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

질문:

2022년 12월 14일

댓글:

2022년 12월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by