Clear Filters
Clear Filters

about numjac handling exp function

1 view (last 30 days)
Kevin Lin
Kevin Lin on 5 May 2020
Edited: Rik on 5 May 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);

Answers (0)

Categories

Find more on Event Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!