I have Symbolic Math Toolbox but get an error with syms, why?

조회 수: 5 (최근 30일)
Byeongchan Min
Byeongchan Min 2020년 5월 24일
댓글: Byeongchan Min 2020년 5월 24일
hi, I made a code like below:
clc
syms xx t
xx=0:0.01:1;
yy=zeros; yyy=zeros;
for i=1:101
yy(i)=int(((1+2*t)/(1-t))^2,0,xx(i));
yyy(i)=xx(i)*((1+2*xx(i))/(1-xx(i)))^2/yy(i);
end
loglog(1-xx,yyy,':');
And I definitely have the Symbolic Math Toolbox. when I type ver in the prompt I can see it.
But why does this code make an error to me? My friend said he had no problem with this; and why do I?
Below is my ver result, FYI
  댓글 수: 4
Walter Roberson
Walter Roberson 2020년 5월 24일
you need to rename C:\Users\iks11\OneDrive\문서\MATLAB\syms.m or remove it from your search path.
Byeongchan Min
Byeongchan Min 2020년 5월 24일
you mean i have to remove non-English characters from the address?

댓글을 달려면 로그인하십시오.

채택된 답변

Steven Lord
Steven Lord 2020년 5월 24일
The function you've written or downloaded named syms.m in your OneDrive is shadowing the syms function that is part of Symbolic Math Toolbox, preventing MATLAB from calling the Symbolic Math Toolbox function.
Rename your syms.m function to a different name, maybe something like mysyms.m.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Variables, Expressions, Functions, and Preferences에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by