Auto generated scatter plot takes four argument instead of two

1 回表示 (過去 30 日間)
Syed Mohammad
Syed Mohammad 2019 年 11 月 3 日
コメント済み: Syed Mohammad 2019 年 11 月 6 日
I was trying to create a scatter plot from an excel file and autogenerate the code of the figure. Everything works fine but while trying to autogenerate the code it generates four arguments in its code instead of two which I selected during creating the figure. So When I call the function to re-create the figure it shows error. How can I solve the problem. One solution is two erase 2 arguments manually from auto generated code. But what is wrong with the auto-generated code.
Thanks in advance.question_scatter_plot.png
  3 件のコメント
Syed Mohammad
Syed Mohammad 2019 年 11 月 4 日
Thank you! But is it possible to change the properties so that by default it takes two argument (X1,Y1) instead of (X1, Y1, S1, C1) while auto-generating the code. I saw this is possible for newer version of Matlab and I am using R2014b. For both scatter and gscatter plot it takes maximum arguments and I am having problem with regenerating the figure and I need to modify the auto generated function manually.
Walter Roberson
Walter Roberson 2019 年 11 月 4 日
I do not know. I have rarely used autogeneration of figure code.

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

採用された回答

Subhadeep Koley
Subhadeep Koley 2019 年 11 月 6 日
Syed,
Yes, it is true that in MATLAB R2014b the auto generated code for a scatter plot contains two extra input arguments. But this problem has been addressed in later releases and when I tried the same in R2019a it is generating two input arguments only. Therefore, upgrading to latest MATLAB release can help.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by