Filter löschen
Filter löschen

about numjac handling exp function

1 Ansicht (letzte 30 Tage)
Kevin Lin
Kevin Lin am 5 Mai 2020
Bearbeitet: Rik am 5 Mai 2020
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);

Antworten (0)

Kategorien

Mehr zu Event Functions finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by