Unexpected MATLAB operator.[x,y]=meshgrid(100:1:500,-200:1:200);z=10./(2*pi.*(4+(2.*x./(x.^2+y.^2).^0.5)).*0.044.*x.^2.*((1+0.0001.*x).^0.5)).exp(-y.^2./(2.*(0.22.*x*(1+0.0001.*x)).^0.5)).*(exp(-9.^2./(0.08.*x.^2))+exp(-11.^2./(0.08.*x.^2)));shading
来源:学生作业学帮网 编辑:学帮网 时间:2024/07/01 07:21:35
Unexpected MATLAB operator.
[x,y]=meshgrid(100:1:500,-200:1:200);
z=10./(2*pi.*(4+(2.*x./(x.^2+y.^2).^0.5)).*0.044.*x.^2.*((1+0.0001.*x).^0.5)).exp(-y.^2./(2.*(0.22.*x*(1+0.0001.*x)).^0.5)).*(exp(-9.^2./(0.08.*x.^2))+exp(-11.^2./(0.08.*x.^2)));
shading flat;
surf(x,y,z)
exp之前少了个符号
clear;
clc
z=10./(2*pi.*(4+(2.*x./(x.^2+y.^2).^0.5)).*0.044.*x.^2.*((1+0.0001.*x).^0.5)).*exp(-y.^2./(2.*(0.22.*x*(1+0.0001.*x)).^0.5)).*(exp(-9.^2./(0.08.*x.^2))+exp(-11.^2./(0.08.*x.^2)));
[x,y]=meshgrid(100:1:500,-200:1:200);
unexpected spike
expected an unexpected u...
matlab 复数虚部如何表示复数虚部是个表达式:e.g:(2*pi*100*0.1)i请问应该如何表示,我输入:>>I=120/(100+(2*pi*100*0.1)i);总报错,Error: Unexpected MATLAB expression. 怎么回事
matlab中读txt文件中的数据,总是出现Error:Unexpected MATLAB operator,程序如下 y1=textread('1.txt');y1=y1(29:56);y1=y1';x1=ones(1,28);plot(x1,y1,'*')
matlab写个表达式,提示 Unbalanced or unexpected parenthesis or bracketsyms y x1 x2>> x1=1:10;>> x2=2:11;>> y=20+(x1.)^2+(x2.)^2-10*(cos(2*pi*x1)+cos(2*pi*x2));y=20+(x1.)^2+(x2.)^2-10*(cos(2*pi*x1)+cos(2*pi*x2));|Error:Unbalanced or unexpected p
matlab做常系数微分方程时 syms x y;y=dsolve(['d3y+3*d1y-4*y=','x'])出现如下错误Error using ==> mapleat offset 2,`}` unexpected
reveal the unexpected是什么意思啊?
matlab
matlab
MATLAB
matlab
matlab
matlab
matlab
MATLAB
matlab
matlab中遇到的问题 Error:Unexpected MATLAB operator>> %直接求解复数的根>> c=-16c =-16>> res_c=c^(1/5)res_c =1.4086 + 1.0234i>> %构造多项式求解所有的根>> %p(r)=r^5-c>> p=[1,0,0,0,0,-c];>> r=roots(p)r =-1.7411 -0.5380 + 1.6559i
关于MATLAB,Error:Unexpected MATLAB operator.>> xita0=[15:15:75]'xita0 =1530456075length(xita0)ans =5>> x=[0:5:80]'x =05101520253035404550556065707580>> length(x)ans =17>> g=9.81;v0=28;y0=0;>> y=(tan(xita0)).*x.-(g/2.*v0.^2*cos.^2(xita0))*x.^2.+y0y=