求关于trapz函数的
clc
xx=-10:0.2:10;
tt=0.01:0.1:1;
tau=-0.5:0.001:0.5;
theata=2*(-tau./abs(tau)).*tau+1.1;
a=2;
=meshgrid(xx, tt,tau);
F=theata.*1/2/2./sqrt(pi*T).*exp(-(X-TAU).^2/4/2^2./T);
js=0.2*trapz(tau,F);
waterfall(X(:,:,1),T(:,:,1),js)
运行后出现下列状况 是什么意思?该如何解决?谢谢啦
??? Error using ==> rdivide
Matrix dimensions must agree.
Error in ==> chuanre at 8
F=theata.*1/2/2./sqrt(pi*T).*exp(-(X-TAU).^2/4/2^2./T); Ref 5F, 常见的程序出错问题整理 http://forum.vibunion.com/thread-46001-1-1.html
(from http://forum.vibunion.com/home-space-uid-63979-do-blog-id-18250.html)
页:
[1]