matlab高手求教!Error using plot Conversion to double from sym is not possible.clc;clear;syms Ao=500.000;r = 0.1000;k = 0.1000;e = 10.000;w = 1/2.* sqrt(A.^2 + 4 .*e.^2);c = 1/2 + A./(4 .*w);s = 1/2 - A./(4 .*w); g1 = sqrt(o.* k .*r) ;g = g1 .*c;

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 16:32:38

matlab高手求教!Error using plot Conversion to double from sym is not possible.clc;clear;syms Ao=500.000;r = 0.1000;k = 0.1000;e = 10.000;w = 1/2.* sqrt(A.^2 + 4 .*e.^2);c = 1/2 + A./(4 .*w);s = 1/2 - A./(4 .*w); g1 = sqrt(o.* k .*r) ;g = g1 .*c;
matlab高手求教!Error using plot Conversion to double from sym is not possible.
clc;
clear;
syms A
o=500.000;
r = 0.1000;
k = 0.1000;
e = 10.000;
w = 1/2.* sqrt(A.^2 + 4 .*e.^2);
c = 1/2 + A./(4 .*w);
s = 1/2 - A./(4 .*w);
g1 = sqrt(o.* k .*r) ;
g = g1 .*c;
r1 = r .*s.^2;
r2 = r .*c.^2;
r3 = r./2 .*(1 + 2 .*s .* c);
a = (2.* g.^2 .*r1 - 2.* g.^2.* r2 - k .*r1.* r3 - k.* r2.* r3)/(4 .*g.^2.* k) ;
q = ((16.* a.^2.* g.^2 .* r1.* (r1 - r2).* (r1 + r2).* r3.^2)./(4.*a.* g.^2 + (r1 + r2) .*r3) - (4 .*a.^2.* g.^2 .*(r1 - r2) .*(r1 + r2).^2.* r3.^2)./(4 .*a .*g.^2 + (r1 + r2).* r3) - (32 .*a.^2.* g.^2 .*r2 .*r3.^2 .*(2.* a.* g.^2 + r1 .*r3))./(4 .*a .*g.^2 + (r1 + r2) .*r3) - 2 .*a.*(r1 + r2).^2 .*r3.^2 .*(r1 + (r3 .*(2.* a.* g.^2 + r1 .*r3))./(4 .*a.* g.^2 + (r1 + r2).* r3))).* g.^2./( r3 .*(4.* a.* g.^2 + (r1 + r2) .*r3)).*1./(abs(-k - (8.* g.^4 .*a .*(r1 - r2))./(4.* g.^2 .*a + (r1 + r2).* r3)^2 + (2.* g.^2 .*(r1 - r2))./(4.* g.^2.* a + (r1 + r2) .*r3)) .* a .* 2);
A=-100:0.001:100;
plot(A,q)
想画个图 可是一直出不来 好苦闷啊

matlab高手求教!Error using plot Conversion to double from sym is not possible.clc;clear;syms Ao=500.000;r = 0.1000;k = 0.1000;e = 10.000;w = 1/2.* sqrt(A.^2 + 4 .*e.^2);c = 1/2 + A./(4 .*w);s = 1/2 - A./(4 .*w); g1 = sqrt(o.* k .*r) ;g = g1 .*c;
A=-100:0.001:100;
o=500.000;
r = 0.1000;
k = 0.1000;
e = 10.000;
w = 1/2.* sqrt(A.^2 + 4 .*e.^2);
c = 1/2 + A./(4 .*w);
s = 1/2 - A./(4 .*w);
 g1 = sqrt(o.* k .*r) ;
g = g1 .*c;
 r1 = r .*s.^2;
 r2 = r .*c.^2;
 r3 = r./2 .*(1 + 2 .*s .* c);
a = (2.* g.^2 .*r1 - 2.* g.^2.* r2 - k .*r1.* r3 - k.* r2.* r3)/(4 .*g.^2.* k) ;
q = ((16.* a.^2.* g.^2 .* r1.* (r1 - r2).* (r1 + r2).* r3.^2)./(4.*a.* g.^2 + (r1 + r2) .*r3) - (4 .*a.^2.* g.^2 .*(r1 - r2) .*(r1 + r2).^2.* r3.^2)./(4 .*a .*g.^2 + (r1 + r2).* r3) - (32 .*a.^2.* g.^2 .*r2 .*r3.^2 .*(2.* a.* g.^2 + r1 .*r3))./(4 .*a .*g.^2 + (r1 + r2) .*r3) - 2 .*a.*(r1 + r2).^2 .*r3.^2 .*(r1 + (r3 .*(2.* a.* g.^2 + r1 .*r3))./(4 .*a.* g.^2 + (r1 + r2).* r3))).* g.^2./( r3 .*(4.* a.* g.^2 + (r1 + r2) .*r3)).*1./(abs(-k - (8.* g.^4 .*a .*(r1 - r2))./(4.* g.^2 .*a + (r1 + r2).* r3).^2 + (2.* g.^2 .*(r1 - r2))./(4.* g.^2.* a + (r1 + r2) .*r3)) .* a .* 2);
plot(A,q)

不需要用到符号变量,直接用数值就可以了

注意你源程序中q=.这行,有一个^忘了用.^,也帮你改了

求教 matlab matlab报错One or more output arguments not assigned during call to'movie'matlab语句如下i=0for x=0:0.1:2*piy=sin(x)plot(x,y,'r*')hold oni=i+1;F(i)=getframe;endMo=movie(F,2);movie2avi(Mo,'firsttime.avi','FPS',1)运行过后会出现:? Error usi MATLAB高手求教 Error:Function definitions are not permitted at the prompt or in scripts.%% 目标PDE函数function [c,f,s]=pdefun (x,t,u,du)c=[1;1];f=[0.024*du(1);0.17*du(2)];temp=u(1)-u(2);s=[-1;1].*(exp(5.73*temp)-exp(-11.46*temp));%% 边界条 matlab高手求教!Error using plot Conversion to double from sym is not possible.clc;clear;syms Ao=500.000;r = 0.1000;k = 0.1000;e = 10.000;w = 1/2.* sqrt(A.^2 + 4 .*e.^2);c = 1/2 + A./(4 .*w);s = 1/2 - A./(4 .*w); g1 = sqrt(o.* k .*r) ;g = g1 .*c; MATLAB 求教大神【急】 Matlab题目,求教! matlab中4维图画法a0=(1:0.2:2);b0=2*pi*(1:0.2:2);zf=b0^2/2*1;z0=zf*(1:0.2:2);x1,x2,x3为a0,b0,z0的已知函数.[X,Y,Z]=meshgrid(x3/zf,x2/2/pi,x1/2/pi,Gm-1)surf(x3/zf,x2/2/pi,x1/2/pi,Gm-1),shading faceted;colorbar('horiz')运行结果:Error usi 求教高手化工英语翻译! 求教逻辑学高手. 英语翻译求教英语高手 求教Mathematica高手, 求教求教~~~数学高手~~帮帮我解这题~~ 关于MATLAB程序解释我刚学MATLAB,看不懂以下的程序,有高手帮逐行翻译下吗?小弟在此谢过了~function [Phi,Gamma] = c2d(a,b,t)error(nargchk(3,3,nargin));error(abcdchk(a,b));[m,n] = size(a);[m,nb] = size(b);s = expm([[a b]*t; 关于matlab计算表达式的问题.求教! matlab优化问题 求教各位大神 超定方程组的Matlab 求法xhat=inv(A'.*A).*A'.*b; Error using ==> times Matrix dimensions must agree.我运行求超定方程组的算法,怎么会出现上述问题?请教高手给出正确的程序. matlab解决灰色模型代码 有点错误 求教1.用MATLAB的灰色预测GM(1,1)模型程序如下%程序中的变量定义;alpha是包含 值的矩阵;ago是预测后累加值矩阵;var是预测值矩阵;error是残差矩阵;c是 请教matlab高手,线性拟合