How do I solve this error?
이전 댓글 표시
Output of the function must be the same size as the input. If FUN is an array-valued integrand, set the 'ArrayValued' option to
true.
B=3.1e98;
R=8.313;
Ea=6.28e5 ;
Omega=integral (@(t) B* exp(-Ea./(R.* V)),0,1);
채택된 답변
추가 답변 (1개)
Sulaymon Eshkabilov
2021년 9월 9일
There are a few errs in your tiny code. Here is the corrected one:
load V.mat
B=3.1e98;
R=8.313;
Ea=6.28e5 ;
% Check your formulation in this function handle that presumably should contain variable "t"!
Fun=@(t)(B*exp(-Ea./(R.* V)));
Omega=integral(Fun,0,1, 'ArrayValued',true);
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
