Integration limit is an array
조회 수: 6 (최근 30일)
이전 댓글 표시

syms x
tau=35*10^-15;
f=tau.*exp(-x.^(2));
t=linspace(-300*10^-15,300*10^-15,500);
fun=matlabFunction(f,'Vars',x);
z=integral(fun,-Inf,(t/tau),'ArrayValued',true)
댓글 수: 0
채택된 답변
VBBV
2022년 12월 22일
syms x
tau=35*10^-15;
f=tau.*exp(-x.^(2));
t=linspace(-300*10^-15,300*10^-15,500);
fun=matlabFunction(f,'Vars',x)
for k = 1:length(t)
z(k)=integral(fun,-Inf,(t(k)/tau),'ArrayValued',true);
end
z
plot(t,z)
댓글 수: 1
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
