Error using symengine, Too many input arguments
显示 更早的评论
i hvae this code
f=@(MV,red_P) red_P - 8*redT/(8*MV-1) +27/(64*MV^2);
dp_dMV=diff(sym (f));
dp_dMV=matlabFunction(dp_dMV);
when I run it , it shows me this
Error using symengine>@()1.0
Too many input arguments.
but my friend have the same code with different names and it is working
this is her
f=@(phi,P_r) P_r - 8*Tr/(8*phi-1) +27/(64*phi^2);
dp_dphi=diff(sym(f));
dp_dphi=matlabFunction(dp_dphi);
4 个评论
madhan ravi
2018-11-14
provide the datas needed to run your code
Wafaa Alnakhli
2018-11-14
madhan ravi
2018-11-14
does the variables have any values?
Wafaa Alnakhli
2018-11-14
回答(1 个)
madhan ravi
2018-11-14
syms Tr P_r P_r phi
f=@(phi,P_r) P_r - 8*Tr/(8*phi-1) +27/(64*phi^2);
dp_dphi=diff(sym(f));
dp_dphi=matlabFunction(dp_dphi);
3 个评论
Wafaa Alnakhli
2018-11-14
madhan ravi
2018-11-14
编辑:madhan ravi
2018-11-14
try clear all at the very begining if your code
Wafaa Alnakhli
2018-11-14
类别
在 帮助中心 和 File Exchange 中查找有关 Common Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!