Peobelms about matrix dimensions

function F=activation
T=100:100:2500;
A=quad(@(E)2/sqrt(pi)*T.^(-1.5).*(E.^0.5).*exp(-1*E./T.).,0,3500);
F=1-A;
end
It won't work, and I'm so confused about the matrix dimensions.

답변 (1개)

James Tursa
James Tursa 2020년 11월 9일

0 개 추천

Take a look at this term:
exp(-1*E./T.).
Looks like you have too many periods in this part of the calculation. Try this
exp(-1*E./T)

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2020년 11월 9일

답변:

2020년 11월 9일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by