Skip to content
Snippets Groups Projects
Commit f1d5e15b authored by Sebastian Schwarz's avatar Sebastian Schwarz
Browse files

add notebook V01.2.ipynb

parent cd4f8eb8
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id:04105e65-6705-4c92-a009-48c54bd38ad4 tags:
# <span style='color:OrangeRed'>V1 DIE GEWICHTFOLGE </span>
%% Cell type:markdown id:ffe7d73f-7986-44b6-a9fd-a678b9aaa182 tags:
<div style="font-family: 'times'; font-size: 13pt; text-align: justify">
In dieser Aufgabe wird die Gewichtsfunktion g(t) linearer, zeitkontinuierlicher Systeme bzw. die Gewichtsfolge g(k)
linearer, zeitdiskreter Systeme thematisiert. g(k) ergibt sich aus g(t) durch eine Abtastung mit der Abtastzeit Ts:
%% Cell type:code id:b7d82b1f-1a44-44a1-a235-e5556d641592 tags:
``` octave
clear all
```
%% Cell type:markdown id:53866cc1-a0ea-4d77-8d9c-c8345704d874 tags:
<div style="font-family: 'times'; font-size: 13pt; text-align: justify">
Das folgende Eingangssignal ist gegeben:
%% Cell type:code id:a0b9d775-f176-483e-aaca-43da284aa2e4 tags:
``` octave
u = [4 2 -3 3 1]
```
%% Output
u =
4 2 -3 3 1
%% Cell type:markdown id:1cb98bc6-138b-45bc-9178-74f8493d4171 tags:
<div style="font-family: 'times'; font-size: 13pt; text-align: justify">
Die Gewichtsfolge lautet:
%% Cell type:code id:03459a21-1072-416b-a04b-5de7b9a30813 tags:
``` octave
g = [1 0 2 -1 0]
```
%% Output
g =
1 0 2 -1 0
%% Cell type:markdown id:071800da-0e16-4189-bb65-5746c0415165 tags:
<div style="font-family: 'times'; font-size: 13pt; text-align: justify">
Der erste Wert des Ausgangssignals wird so berechnet:
%% Cell type:code id:5adb101b-4286-428a-a4bd-eeb57e860e9c tags:
``` octave
y(1) = g(1)*u(1)
```
%% Output
y = 4
%% Cell type:markdown id:eae75561-2795-400d-802d-f649281ff316 tags:
<div style="font-family: 'times'; font-size: 13pt; text-align: justify">
Der zweite Wert wird sein:
%% Cell type:code id:acf57137-23eb-4be3-87ef-eb9d08076f07 tags:
``` octave
y(2) = g(1)*u(2)+g(2)*u(1)
```
%% Output
y =
4 2
%% Cell type:markdown id:ab36a55a-6239-4214-9d36-85f4d111c61e tags:
<div style="font-family: 'times'; font-size: 13pt; text-align: justify">
Und der dritte Wert:
%% Cell type:code id:c4c1fce4-7677-40d3-813e-5a5e4758f00f tags:
``` octave
y(3) = g(1)*u(3)+g(2)*u(2)+g(3)*u(1)
```
%% Output
y =
4 2 5
%% Cell type:markdown id:c5fb33ea-47d7-49bf-a8ce-f1d81917a1d0 tags:
<div style="font-family: 'times'; font-size: 13pt; text-align: justify">
Und schließlich der vierte Wert (und so weiter...):
%% Cell type:code id:14c39a24-fc50-4924-8075-84125990776f tags:
``` octave
y(4) = g(1)*u(4)+g(2)*u(3)+g(3)*u(2)+g(4)*u(1)
```
%% Output
y =
4 2 5 3
%% Cell type:markdown id:25ea2215-45ca-4980-a862-372d0eccf237 tags:
<div style="font-family: 'times'; font-size: 13pt; text-align: justify">
Wir können unsere Berechnungen auch mit der Faltungssumme-Funktion überprüfen, die direkt in Octave verfügbar ist:
%% Cell type:code id:5d66f64a-7857-470c-a708-2645a70a9e3f tags:
``` octave
y2 = conv(g,u)
```
%% Output
y2 =
4 2 5 3 -7 9 -1 -1 0
%% Cell type:code id:9e1a668f-07ac-442a-bb62-950dacd49832 tags:
``` octave
```
%% Cell type:code id:f68f7a0c-84ff-4c18-9d68-3dc540fc8f07 tags:
``` octave
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment