Michael Scholz 0fe686245c CE update
2013-02-20 16:20:56 +01:00

20 lines
473 B
Matlab

function testB()
fehler = 0;
syms x1;
f=[x1^2];
jac=jacobian(f)
matlabFunction(f, 'file','myfunc', 'vars', {[x1]});
matlabFunction(jac, 'file','myjac', 'vars', {[x1]});
disp('--------------------------------------------------------------')
if exist('diffplot.m')==0
disp('Keine Loesung fuer Aufgabe b) gefunden ')
else
diffplot(@myfunc, @myjac, [1])
end
disp('--------------------------------------------------------------')