重新安装matlab,安装时选择custom,在列表里把symbolic math toolbox选中,别的都不用选,安装。您出错的原因是您没有事先定义好符号变量"t"。这个问题很容易解决。先输入:“syms t”再回车然后再输入您要输入的“ f=sym('jieyue(t+3)-2*jieyue(t)')”再回车即可希望我回答了您的问题,谢谢。...
x=solve('465*sin(x)+200=120*cos(t*1.2+pi/3)+369*sin(x-y)','x');所以软件会提示有关sym的信息。2、如要显示x值,其该语句最后不能有分号(;)。由于你给出的t、y值是以一组向量形式存放的,因此要计算你的x值必须要用循环语句(如for。。。end语句)来求解。需要在t、y值后...
MATLAB Online에서 열기 symsa y t; z0=diff(sym('y(t)'))+a*sym('y(t)'); z=laplace(z0); F1=subs(z,'laplace(y(t),t,s)',sym('Y')); F2=subs(F1,'y(0)',sym('1')); Y=solve(F2,sym('Y')); y=ilaplace(Y); ...
A = sym("a",[1 3])creates the row vectorA = [a1 a2 a3]. The generated elementsa1,a2, anda3do not appear in the MATLAB®workspace. For multidimensional arrays, these elements have the prefixa_a1_3_2.
matlab solve函数求出的工作区方程根是sym 那怎么查看他具体值呢?网上查了好多 有说subs的 有说double...
S=solve('Xw1*r11+Yw1*r12+A(1)*Xw1*r31+A(1)*Yw1*r32+t1+A(1)*t3=0',...'Xw1*r21+Yw1*r22+B(1)*Xw1*r31+B(1)*Yw1*r32+t2+B(1)*t3=0',...'Xw2*r11+Yw2*r12+A(2)*Xw2*r31+A(2)*Yw2*r32+t1+A(2)*t3=0',...'Xw2*r21+Yw2*r22+B(2)*Xw2*r31+B...
1、使用符号表达式作为输入参数调用solve:syms x yq=handles.metricdata.q; Fb=handles.metricdata.Fb;[x,y]=solve(-(1.323*x+4.011*y)+5981.76+2.008*q+10.171*Fb,-(4.011*x+1.323*y)+19396.053+1.008*q+3.059*Fb,x,y)2、把变量值转换为字符串:[x,y]=solve(['1.323...
You can then use the variable f1 in the MATLAB workspace for symbolic workflow, such as finding the zeros of a sine function. Get f2 = sin(f1) f2 = sin(x) Get [solx,parameters,conditions] = solve(f2,f1,'ReturnConditions',true) solx = π k parameters = k conditions = k∈...
【题目】matlab 7.8.9版(用不了solve和sym) solve的问题:$$ > > X = s o l v e ( ' X \sim 3 - 2 \ast X \sim 2 - 4 \ast X - 7 ' ) ? ? ? $$ndefined function or method 'solve' for input arguments of typ e 'char'. sym的问题:>>a$$ = \left[ 1 2 2 1 ; 2...
> In solve at 160 x =[ empty sym ]y =[]>> 答案 最后一句改成[x,y]=solve('y=tan(a+b)*x','x^2+y^2=d','d,b');能求了,不过求出的x,y表达式里仍含有x,y.x =atan(y/x) - ay =x^2 + y^2不知道是不是matlab求不出解析解来!用mathematica或者maple吧!