20 lines
473 B
Matlab
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('--------------------------------------------------------------')
|
|
|