How to solve error in regression learner models?.

6 件のコメント

Walter Roberson
Walter Roberson 2023 年 10 月 29 日
RLax is empty after the findall()
Ahmed Eltantawi
Ahmed Eltantawi 2023 年 11 月 1 日
Thanks, i found another error, how to solve it?. @Walter Roberson
Walter Roberson
Walter Roberson 2023 年 11 月 1 日
If RLax is scalar then the get() will be a numeric array directly, but if it is nonscalar then it is a cell array
Ahmed Eltantawi
Ahmed Eltantawi 2023 年 11 月 2 日
Yes it is scalar, How to modify the code accordingly?. @Walter Roberson
Ahmed Eltantawi
Ahmed Eltantawi 2023 年 11 月 7 日
@Walter Roberson yes i am following it, but i do not know where is the problem?.
Please can you help me to solve the error.
Thanks in advance

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

回答 (1 件)

Vatsal
Vatsal 2023 年 12 月 13 日

0 投票

Hi,
I understand that you want to find figures and axes objects within a MATLAB application and then retrieve the “XData” and “YData” from the axes objects.
The first error you are encountering, "Unrecognized method, property, or field 'Children' for class 'matlab.graphics.GraphicsPlaceholder'", is likely due to RLax being empty. The second error, "Input #2 expected to be a cell array, was double instead", indicates that the variable is a double when it was expected to be a cell array. To resolve this, you can use the function "num2cell" to convert "X" and "Y" to cell array.
To learn more about the usage and syntax of ‘num2cell’ function, you can refer to the MathWorks documentation links below:
I hope this helps!

カテゴリ

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

質問済み:

2023 年 10 月 29 日

回答済み:

2023 年 12 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by