syms does not work

4 ビュー (過去 30 日間)
Zeyuan
Zeyuan 2025 年 3 月 13 日
移動済み: Walter Roberson 2025 年 3 月 14 日
I have been trying to get my syms to work. Here is my code:
syms x
f=2*x
int(f,x)
However, Here is the error I got:
错误使用 mupadengine/evalin2double
无效表达式。请检查缺失的乘法运算符、缺失或不对称的分隔符或者其他语法错误。要构造矩阵,请使用方括号而不是圆括号。
出错 mupadengine/feval2double
出错 sym/numel (18 )
y = feval2double(symengine, 'symobj::numel', x.s);
出错 sym/isempty (729 )
y = numel(x)==0;
出错 sym/privsubsasgn (1141 )
if ~isDeleting && isempty(L) && isempty(R)
出错 索引 (1025 )
C = privsubsasgn(L,R,inds{:});
出错 syms (268 )
defined(k) = nsym;
出错 equation (1 )
syms x
I have tried to look up on google but nothing is useful. I have been trying to print out these:
When I print out
restoredefaultpath
rehash toolboxcache
I can see the symbolic path in the toolbox.
When I print out
ver
I can find out :
Symbolic Math Toolbox 版本 24.1 (R2024a)
  2 件のコメント
Torsten
Torsten 2025 年 3 月 13 日
syms x
f=2*x
int(f,x)
And this is really the complete code you use ?
Walter Roberson
Walter Roberson 2025 年 3 月 13 日
Approximate translation:
Error using mupadengine/evalin2double
Invalid expression. Check for missing multiplication operators, missing or unsymmetrical delimiters, or other syntax errors. To construct matrices, use square brackets instead of parentheses.
Error in mupadengine/feval2double
Error in sym/numel (line 18) y = feval2double(symengine, 'symobj::numel', x.s);
Error in sym/isempty (line 729) y = numel(x)==0;
Error in sym/privsubsasgn (line 1141) if ~isDeleting && isempty(L) && isempty(R)
Error in indexing (line 1025) C = privsubsasgn(L,R,inds{:});
Error in syms (line 268) defined(k) = nsym;
Error in equation (line 1) syms x

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

回答 (1 件)

Walter Roberson
Walter Roberson 2025 年 3 月 13 日
移動済み: Walter Roberson 2025 年 3 月 14 日
I suspect you are going to need to reinstall MATLAB + toolboxes
  2 件のコメント
Zeyuan
Zeyuan 2025 年 3 月 14 日
移動済み: Walter Roberson 2025 年 3 月 14 日
I will try that
Zeyuan
Zeyuan 2025 年 3 月 14 日
移動済み: Walter Roberson 2025 年 3 月 14 日

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

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by