Error using symengine Unexpected 'identifier'.
古いコメントを表示
how to fix all these errors Error using symengine Unexpected 'identifier'.
Error in mupadengine/evalin (line 111) res = mupadmex(statement,output_type{:});
Error in dsolve>mupadDsolve (line 335) sys = [sys_sym evalin(symengine, sys_str)];
Error in dsolve (line 193) sol = mupadDsolve(args, options);
回答 (1 件)
Anurag Ojha
2024 年 11 月 22 日
Hey Olmar
The errors you're encountering seem to be related to symbolic computation in MATLAB, specifically when using the 'dsolve' function. This can occur due to a variety of reasons, such as syntax errors, incorrect input, or issues with the symbolic engine.
Following some steps you can take to troubleshoot and potentially fix these errors:
- Make sure all variables and functions are properly defined using syms.
syms y(t)
- Ensure that you are using the dsolve function correctly. Here is a basic example:
syms y(t)
Dy = diff(y, t);
eqn = Dy == -y;
sol = dsolve(eqn);
- Also, make sure you are not using any MATLAB reserved keywords. Adding MATLAB documentation for your reference: https://in.mathworks.com/help/rtw/ug/reserved-keywords.html
Kindly provide more information to debug further.
Thanks
カテゴリ
ヘルプ センター および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!