Hi, I'm running some code provided on a course (so it should work!), but I keep getting an error related to the sym toolbox, needless to say I have restarted Matlab multiple times. Any ideas how to resolve issues with the sym toolbox?
'Error using mupadmex Internal error with symbolic engine. Quit and restart MATLAB.
Error in symengine
Error in sym (line 185) symengine;
Error in sympref>implementedSymprefs (line 142) y = {'FourierParameters', sym([1,-1]), 'MuPAD', 'sym';...
Error in sympref (line 81) iSymprefs = implementedSymprefs;
Error in syms (line 199) calledFromBase = mupadmex('', 8);
Error in nonlinear (line 6) syms y x z'
The relevant chunk of code is below (I don't think the issue is the code). syms y x z
fs = (x^(eta)-y)^(-1)-delta*eta*y^(eta-1)*(y^(eta)-z)^(-1);
dfs = diff(fs,y);
f = matlabFunction(fs,'vars',[y x z]); df = matlabFunction(dfs,'vars',[y x z]);

2 件のコメント

madhan ravi
madhan ravi 2018 年 7 月 9 日
編集済み: madhan ravi 2018 年 7 月 9 日
you didn’t define eta and delta?
Lucinda Burn
Lucinda Burn 2018 年 7 月 9 日
Yeah I did, I just didn't include in segment above as not relevant to error message.

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

回答 (1 件)

Star Strider
Star Strider 2018 年 7 月 9 日

1 投票

A recent Windows 10 update causes this problem.
There are a few other problems with your code that the error messages explain. When you fix those, your code works (in R2018a).

製品

リリース

R2018a

タグ

質問済み:

2018 年 7 月 9 日

回答済み:

2018 年 7 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by