matlab仿真老是出现错误,请问怎么改?
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/09/22 06:43:40
matlab仿真老是出现错误,请问怎么改?
clear;
clc;
deta=2;w=2.5;theta=0;
a=linspace(-10,10,25);
b=linspace(-1.0,1.0,25);
[x,y]=meshgrid(a,b);
s(x,y)=exp(-0.5*((x/deta)^2+(y/deta)^2)).*sin(w*(x*cos(theta)+y*sin(theta)));
plot3(x,y,s(x,y));
Subscript indices must either be real positive integers or logicals.
Error in ==> gabormeshgrid at 7
s(x,y)=exp(-0.5*((x/deta)^2+(y/deta)^2)).*sin(w*(x*cos(theta)+y*sin(theta)));
clear;
clc;
deta=2;w=2.5;theta=0;
a=linspace(-10,10,25);
b=linspace(-1.0,1.0,25);
[x,y]=meshgrid(a,b);
s(x,y)=exp(-0.5*((x/deta)^2+(y/deta)^2)).*sin(w*(x*cos(theta)+y*sin(theta)));
plot3(x,y,s(x,y));
Subscript indices must either be real positive integers or logicals.
Error in ==> gabormeshgrid at 7
s(x,y)=exp(-0.5*((x/deta)^2+(y/deta)^2)).*sin(w*(x*cos(theta)+y*sin(theta)));
clear; clc;
deta = 2; w = 2.5; theta = 0;
a = linspace(-10,10,25);
b = linspace(-1.0,1.0,25);
[x,y] = meshgrid(a,b);
s = exp(-0.5*((x/deta)^2+(y/deta)^2)).*sin(w*(x*cos(theta)+y*sin(theta)));
plot3(x,y,s);
deta = 2; w = 2.5; theta = 0;
a = linspace(-10,10,25);
b = linspace(-1.0,1.0,25);
[x,y] = meshgrid(a,b);
s = exp(-0.5*((x/deta)^2+(y/deta)^2)).*sin(w*(x*cos(theta)+y*sin(theta)));
plot3(x,y,s);
matlab仿真老是出现错误,请问怎么改?
MATLAB仿真出现错误,
matlab仿真一直出现错误
matlab/simulink仿真出现错误,
初学matlab电路仿真出现错误,求解
matlab中老是出现这个错误怎么改呀 Error using ==> mtimes Inner matrix dime
在用Matlab仿真时出现以下问题 怎么改啊
使用matlab的simulink仿真时出现警告 怎么处理
matlab出现错误怎么解决
MATLAB 二元二次函数出图 老是出现错误,
用matlab中simulink仿真模糊控制液位出现以下错误是什么原因,该怎么解决呢?求大师支招~小女子先谢过~
MATLAB做模糊控制的仿真实验时遇到以下面得错误,请问怎么回事!