error using sym>convertChar (line1459)
이전 댓글 표시
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
2019년 11월 6일
Copyrighted code removed.
One of the sources of the code is https://github.com/sicil1ano/Matlab-Genetic-Programming/blob/master/gppretty.m
답변 (1개)
Sai Sri Pathuri
2019년 11월 6일
0 개 추천
You may refer the following answer
카테고리
도움말 센터 및 File Exchange에서 Operations on Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!