Borrar filtros
Borrar filtros

about numjac handling exp function

1 visualización (últimos 30 días)
Kevin Lin
Kevin Lin el 5 de Mayo de 2020
Editada: Rik el 5 de Mayo de 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);

Respuestas (0)

Categorías

Más información sobre Mathematics and Optimization en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by