mirror of
https://github.com/eddyem/lectures.git
synced 2026-03-20 08:41:01 +03:00
Add image processing - 2
This commit is contained in:
4
Komp_obr_SFedU/Materials4Pract/04/F.m
Normal file
4
Komp_obr_SFedU/Materials4Pract/04/F.m
Normal file
@@ -0,0 +1,4 @@
|
||||
function F = F(x)
|
||||
F(1) = exp(-exp(-(x(1)+x(2)))) - x(2)*(1+x(1).^2);
|
||||
F(2) = x(1).*cos(x(2)) + x(2).*sin(x(1)) - 0.5;
|
||||
endfunction
|
||||
3
Komp_obr_SFedU/Materials4Pract/04/i1.m
Normal file
3
Komp_obr_SFedU/Materials4Pract/04/i1.m
Normal file
@@ -0,0 +1,3 @@
|
||||
function y = i1 (x)
|
||||
y = x .* sin (1./x) .* sqrt (abs (1 - x));
|
||||
endfunction
|
||||
3
Komp_obr_SFedU/Materials4Pract/04/ode1.m
Normal file
3
Komp_obr_SFedU/Materials4Pract/04/ode1.m
Normal file
@@ -0,0 +1,3 @@
|
||||
function xdot = ode1(x, t)
|
||||
xdot = -exp(-t)*x^2;
|
||||
endfunction
|
||||
4
Komp_obr_SFedU/Materials4Pract/04/vdp1.m
Normal file
4
Komp_obr_SFedU/Materials4Pract/04/vdp1.m
Normal file
@@ -0,0 +1,4 @@
|
||||
% Initialisation of Van der Pol with mu=1
|
||||
function dydt = vdp1(t,y)
|
||||
dydt = [y(2); (1-y(1)^2)*y(2)-y(1)];
|
||||
endfunction
|
||||
5
Komp_obr_SFedU/Materials4Pract/04ans/test.m
Normal file
5
Komp_obr_SFedU/Materials4Pract/04ans/test.m
Normal file
@@ -0,0 +1,5 @@
|
||||
function A = test(x)
|
||||
A(1) = 2*(x(1) - 4).^2 + 7*(x(2)-8).^2 - x(3).^2;
|
||||
A(2) = 5*(x(1) - 1).^2 - 4*(x(2)+3).^2 + 2* x(3).^2 + 1;
|
||||
A(3) = x(1).^2 + x(2)^2 + x(3)^2;
|
||||
endfunction
|
||||
1
Komp_obr_SFedU/Materials4Pract/04ans/testans
Normal file
1
Komp_obr_SFedU/Materials4Pract/04ans/testans
Normal file
@@ -0,0 +1 @@
|
||||
9.54, 3.44, -7.91
|
||||
Reference in New Issue
Block a user