Too many output arguments despite same function call

3 ビュー (過去 30 日間)
Xho
Xho 2020 年 11 月 2 日
コメント済み: Rena Berman 2021 年 5 月 7 日
I received the error message "Error using sym/rref Too many output arguments."
Error in columnspaces (line 19)
[R, pivot] = rref(B);
---------------------------------
columnspaces is a function I created. I have no idea why I am receiving this error especially since I do [R, pivot] = rref(A); on line 17. Since both take in matrices as input, I am unsure as to why I am only receivng an error message on line 19. They are essentially the same thing, how does only one of them produce this error????
  2 件のコメント
Stephen23
Stephen23 2020 年 11 月 2 日
編集済み: Stephen23 2020 年 11 月 2 日
Original question by Michael McGaha retrieved from Google Cache:
I received the error message "Error using sym/rref Too many output arguments."
Error in columnspaces (line 19)
[R, pivot] = rref(B);
---------------------------------
columnspaces is a function I created. I have no idea why I am receiving this error especially since I do [R, pivot] = rref(A); on line 17. Since both take in matrices as input, I am unsure as to why I am only receivng an error message on line 19. They are essentially the same thing, how does only one of them produce this error????
Rena Berman
Rena Berman 2021 年 5 月 7 日
(Answers Dev) Restored edit

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

回答 (2 件)

Walter Roberson
Walter Roberson 2020 年 11 月 2 日
The one on line 19 has a symbolic input. The symbolic function rref does not have two outputs.

Ameer Hamza
Ameer Hamza 2020 年 11 月 2 日
How are you calling the function columnspaces()? I guess you are trying to run it by pressing the big green button in the toolbar. You need to pass an input argument to columnspaces() otherwise, it will not recognize what is the value of 'A'. Run something like the following in the command window
columnspaces(A)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by