You are on page 1of 16

ТУ София филиал Пловдив

Протокол №4
Тема: Изследване на равновесното
състояние
V*0 = const
Трета степен
-схема на опитна постановка

Код в програмата:
m=1
k=1
vz0 = 0

eps1 = 0.1

sim('uns2020_t1ch8_pr2_011',[0 10])

figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,vzv)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p1','fig')
saveas(gcf,'p1','png')

figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p2','fig')
saveas(gcf,'p2','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

t1 = t
vzv1 = vzv
v1 = v
saveas(gcf,'p3','fig')
saveas(gcf,'p3','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p4','fig')
saveas(gcf,'p4','png')

%/////////////////////////
eps1 = -0.1
close all;

sim('uns2020_t1ch8_pr2_011',[0 10])

figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,v)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p5','fig')
saveas(gcf,'p5','png')

figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p6','fig')
saveas(gcf,'p6','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

t11 = t
vzv11 = vzv
v11 = v

saveas(gcf,'p7','fig')
saveas(gcf,'p7','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p8','fig')
saveas(gcf,'p8','png')

%/////////////////////////////////////////////////////
eps1 = 10
close all;

sim('uns2020_t1ch8_pr2_011',[0 10])
figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,v)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p9','fig')
saveas(gcf,'p9','png')

figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p10','fig')
saveas(gcf,'p10','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

t111 = t
vzv111 = vzv
v111 = v

saveas(gcf,'p11','fig')
saveas(gcf,'p11','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p12','fig')
saveas(gcf,'p12','png')

%/////////////////////////////////////////////////////
eps1 = -10
close all;

sim('uns2020_t1ch8_pr2_011',[0 10])

figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,v)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p13','fig')
saveas(gcf,'p13','png')

figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p14','fig')
saveas(gcf,'p14','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])
t1111 = t
vzv1111 = vzv
v1111 = v
saveas(gcf,'p15','fig')
saveas(gcf,'p15','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p16','fig')
saveas(gcf,'p16','png')

%/////////////////////////////////////////////////////
eps1 = -vz0
close all;

sim('uns2020_t1ch8_pr2_011',[0 10])

figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,v)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p17','fig')
saveas(gcf,'p17','png')

figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p18','fig')
saveas(gcf,'p18','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

t11111 = t
vzv11111 = vzv
v11111 = v

saveas(gcf,'p19','fig')
saveas(gcf,'p19','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p20','fig')
saveas(gcf,'p20','png')
%////////////////////////////////////////////////////

%////////////////////////////////////////////////////
vz0 = 10
eps1 = 0.1

close all;
sim('uns2020_t1ch8_pr2_011',[0 10])

figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,vzv)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p21','fig')
saveas(gcf,'p21','png')

figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p22','fig')
saveas(gcf,'p22','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])
t2 = t
vzv2 = vzv
v2 = v
saveas(gcf,'p23','fig')
saveas(gcf,'p23','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p24','fig')
saveas(gcf,'p24','png')

%/////////////////////////
eps1 = -0.1
close all;

sim('uns2020_t1ch8_pr2_011',[0 10])

figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,v)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p25','fig')
saveas(gcf,'p25','png')
figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p26','fig')
saveas(gcf,'p26','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

t22 = t
vzv22 = vzv
v22 = v

saveas(gcf,'p27','fig')
saveas(gcf,'p27','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p28','fig')
saveas(gcf,'p28','png')

%/////////////////////////////////////////////////////
eps1 = 10
close all;

sim('uns2020_t1ch8_pr2_011',[0 10])

figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,v)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p29','fig')
saveas(gcf,'p29','png')

figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p30','fig')
saveas(gcf,'p30','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

t222 = t
vzv222 = vzv
v222 = v
saveas(gcf,'p31','fig')
saveas(gcf,'p31','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p32','fig')
saveas(gcf,'p32','png')

%/////////////////////////////////////////////////////
eps1 = -10
close all;

sim('uns2020_t1ch8_pr2_011',[0 10])

figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,v)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p33','fig')
saveas(gcf,'p33','png')

figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p34','fig')
saveas(gcf,'p34','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

t2222 = t
vzv2222 = vzv
v2222 = v

saveas(gcf,'p35','fig')
saveas(gcf,'p35','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p36','fig')
saveas(gcf,'p36','png')

%/////////////////////////////////////////////////////
eps1 = -vz0
close all;
sim('uns2020_t1ch8_pr2_011',[0 10])

figure(1)
plot(t,vzv,'r','LineWidth',2)
grid on
title(['plot(t,v)/ Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p37','fig')
saveas(gcf,'p37','png')

figure(2)
plot(t,v,'b','LineWidth',2)
grid on
title(['plot(t,v)/Vz=Vz0 eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p38','fig')
saveas(gcf,'p38','png')

figure(3)
plot(t,vzv,'r','LineWidth',4)
hold on
grid on
plot(t,v,'b','LineWidth',2)
title(['plot(t,vzv)-red , plot(t,v)-blue /Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

t22222 = t
vzv22222 = vzv
v22222 = v

saveas(gcf,'p39','fig')
saveas(gcf,'p39','png')

figure(4)
plot(t,x,'k','LineWidth',2)
grid on
title(['plot(t,x)/Vz=Vz0 / eps1 = ' num2str(eps1) ' / vz0 = ' num2str(vz0)])

saveas(gcf,'p40','fig')
saveas(gcf,'p40','png')

% close all;
% aa = openfig('p3.fig')
% bb = openfig('p23.fig')

figure(1111)
plot(t1,vzv1)
hold on
plot(t1,v1)
plot(t2,vzv2)
plot(t2,v2)
saveas(gcf,'p41','fig')
saveas(gcf,'p41','png')

figure(2222)
plot(t11,vzv11)
hold on
plot(t11,v11)
plot(t22,vzv22)
plot(t22,v22)
saveas(gcf,'p42','fig')
saveas(gcf,'p42','png')
figure(3333)
plot(t111,vzv111)
hold on
plot(t111,v111)
plot(t222,vzv222)
plot(t222,v222)
saveas(gcf,'p43','fig')
saveas(gcf,'p43','png')

figure(4444)
plot(t1111,vzv1111)
hold on
plot(t1111,v1111)
plot(t2222,vzv2222)
plot(t2222,v2222)
saveas(gcf,'p44','fig')
saveas(gcf,'p44','png')

figure(5555)
plot(t11111,vzv11111)
hold on
plot(t11111,v11111)
plot(t22222,vzv22222)
plot(t22222,v22222)
saveas(gcf,'p45','fig')
saveas(gcf,'p45','png')
При eps1 = 0.1

При eps1 = -0.1


При eps1 = 10

При eps1 = -10


При eps1 = 0.1 vz0 = 10

При eps1 = -0.1 vz0 = 10


При eps1 = -10 vz0 = 10

При стравнение на 3те упражнения


m=1
k=1
vz0 = 0

eps1 = 0.1

sim('ex22',[0 10])
tls = t
xls = x
sim('ex3',[0 10])
tns = t
xns = x
sim('uns2020_t1ch8_pr2_011',[0 10])
tnsps = t
xnsps = x

figure(1)
plot(tls,xls,'r','LineWidth',2)
grid on
hold on
plot(tns,xns,'k','LineWidth',2)
plot(tnsps,xnsps,'b','LineWidth',2)
plot(tnsps,0.05*eps1,'-m')

title(['(tls,xls)-red , (tns3,xns3)-black , (tnsps,xnsps)-blue/ eps1 = ' num2str(eps1)])


saveas(gcf,'p41','fig')
saveas(gcf,'p41','png')
////////

eps1 = 10

sim('ex22',[0 10])
tls = t
xls = x
sim('ex3',[0 10])
tns = t
xns = x
sim('uns2020_t1ch8_pr2_011',[0 10])
tnsps = t
xnsps = x

figure(2)
plot(tls,xls,'r','LineWidth',2)
grid on
hold on
plot(tns,xns,'k','LineWidth',2)
plot(tnsps,xnsps,'b','LineWidth',2)
plot(tnsps,0.05*eps1,'-m')

title(['(tls,xls)-red , (tns3,xns3)-black , (tnsps,xnsps)-blue/ eps1 = ' num2str(eps1)])

При eps1 = 10 eps1 = 0.1

Извод:
Видяхме, че при третата степен имаме най плавно и бавно доближаване и установяване до
равновесното положение.
При по голяма грешка eps1 виждаме че процеса е по бавен от колкото при третата степен
но после достига до много плавна доближаване до установената което е по бързо от третата
степен.

You might also like