Too many output arguments s = setting

can you please help me with this?
Here I have check settings() function which returns nothing but matlab built-in funcition imshow() is expecting it to return some object 's' therefore it is giving error "too many output arguments" in fact it return nothing.
Thanks in advance!

8 件のコメント

Tommy
Tommy 2020 年 4 月 27 日
What settings function did you check? What is the result of
which settings
Walter Roberson
Walter Roberson 2020 年 4 月 27 日
Yes, it is likely that you have your own settings.m that is interfering with Mathwork's setting.m
Muhammad Asif
Muhammad Asif 2020 年 4 月 27 日
thanks for your reply
my matlab version is 2017a
while in the current folder where I am working there is no such setting function. Actually I am trying to run a matlab example as you can see in the picture.
Rik
Rik 2020 年 4 月 27 日
Please show the results of this line:
which settings -all
That way we know for sure the inbuilt function is called.
Muhammad Asif
Muhammad Asif 2020 年 4 月 27 日
>> which settings -all
C:\Program Files\MATLAB\R2017a\toolbox\psat\settings.m
C:\Program Files\MATLAB\R2017a\toolbox\matlab\configtools\settings.m % Shadowed
Walter Roberson
Walter Roberson 2020 年 4 月 27 日
Use pathtool to move
C:\Program Files\MATLAB\R2017a\toolbox\psat
to the bottom of your path.
Note: this might interfere with psat working properly, but that is something to worry about later.
Muhammad Asif
Muhammad Asif 2020 年 4 月 27 日
Great!
It worked.
Thanks a lot
prince  aduama
prince aduama 2022 年 2 月 13 日
It worked. Thank you!

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

回答 (0 件)

カテゴリ

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

質問済み:

2020 年 4 月 27 日

コメント済み:

2022 年 2 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by