Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
이전 댓글 표시
function (obj_function1[pop], obj_function2[pop]) = TF_Obj_Function1(pid)
After execution the command window showing Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
댓글 수: 1
John D'Errico
2022년 11월 5일
You can't just make up syntax, and hope it will work. This is true in any language. Yes, it MIGHT work, but what are the odds?
답변 (1개)
Torsten
2022년 11월 5일
The usual way to define a function is
function [output1,output2,...] = name_of_the_function(input1,iput2,...)
Your line of code from above does not make sense.
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!