Created
April 22, 2017 15:24
-
-
Save matoushybl/94ded40cdc7b0ec8f10379aeaa3831a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
K=0.9; | |
m=1; | |
g=9.81; | |
T=100; | |
sim('obdelnik') | |
E(end) | |
sim('obdelnik2periody') | |
sim('dif1') | |
sim('dif2') | |
figure | |
plot(obdelnikovySignal.time, obdelnikovySignal.signals.values) | |
title('2 periody obdelnikoveho signalu') | |
xlabel('cas t [s]') | |
ylabel('y [-]') | |
figure | |
subplot(2,1, 1) | |
plot(dif1.time, dif1.signals.values, '--') | |
title('Diferencialni rovnice1') | |
xlabel('cas t [s]') | |
ylabel('y [-]') | |
subplot(2, 1, 2) | |
plot(dif2.time, dif2.signals.values, 'x') | |
title('Diferencialni rovnice2') | |
xlabel('cas t [s]') | |
ylabel('y [-]') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment