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 件のコメント

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 件)

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 ExchangeStructures についてさらに検索

タグ

質問済み:

2022 年 11 月 5 日

コメント済み:

2022 年 11 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by