필터 지우기
필터 지우기

about numjac handling exp function

조회 수: 1 (최근 30일)
Kevin Lin
Kevin Lin 2020년 5월 5일
편집: Rik 2020년 5월 5일
I am facing a problem that when I am using numjac to find the jacobian of a exp function, when my deminsion grows , the error grows super large, how can I fix that? the seting as following:
x=[0:1/(i-1):1]'
t=1;
fty=ff(t,x);
thresh=eps.*ones(i,1);
frac=[];
vectorized=1;
numjac(@ff ,t,x,fty,thresh,frac,vectorized);
where
[ FF ] = ff( t,X )
d=size(X);
n=d(1);
FF=repmat(sum(X),n,1).*exp(X);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by