error using sym>convertChar (line1459)

7 ビュー (過去 30 日間)
Yewei Li
Yewei Li 2019 年 11 月 3 日
コメント済み: Walter Roberson 2019 年 11 月 6 日
holle everyone,
When I used GPTIPS for function fitting, the following problem occurred when I used the code----gppretty(gp,'best')
error using sym>convertChar (line 1459)
Character vectors and strings in the first argument can only specify a variable or number. To evaluate character vectors and strings
representing symbolic expressions, use 'str2sym'.
error using sym>tomupad (line 1225)
S = convertChar(x);
error using sym (line 214)
S.s = tomupad(x);
error using gppretty (line 246)
fullExpr = gp.results.best.returnvalues(1) + gp.results.best.returnvalues(2)*sym(evalTree{1});
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 11 月 6 日
Copyrighted code removed.

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

回答 (1 件)

Sai Sri Pathuri
Sai Sri Pathuri 2019 年 11 月 6 日

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by