I get this error when using Matlab R2018b but not when I use Matlab R2016b and I'm not sure why. This is part of my code:
[r2 ,rmse] = rsquare(f_Br,f);
And this is the full error message:
Error using rsquare
Too many output arguments.
Error in TX_Process_SamW (line 451)
[r2 ,rmse] = rsquare(f_Br,f);

回答 (1 件)

madhan ravi
madhan ravi 2019 年 1 月 2 日

0 投票

It's pretty clear that the function defined has only one output argument whereas you are calling it with two.

2 件のコメント

jenny orriss
jenny orriss 2019 年 1 月 2 日
Sorry I'm pretty new to maylap, which part would I need to edit?
Image Analyst
Image Analyst 2019 年 1 月 2 日
We don't know what rsquare() returns because you did not share the code. So the best we can say is
theOutput = rsquare(f_Br,f);
Note that we are now only trying to get one output from the function. You have to look at the function source code, or help, to figure out what theOutput really represents.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2019 年 1 月 2 日

コメント済み:

2019 年 1 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by