Skip to content

Commit

Permalink
cleanup + added an3E
Browse files Browse the repository at this point in the history
added Analogtechnik
added PCBWay to manufacturers
  • Loading branch information
Simon M. Burkhardt committed Nov 17, 2018
1 parent 6b32511 commit d63f864
Show file tree
Hide file tree
Showing 15 changed files with 2,094 additions and 1 deletion.
1 change: 1 addition & 0 deletions PCB manufacturers.md
@@ -1,6 +1,7 @@

- [JLC PCB](https://jlcpcb.com/)
- [Elecrow](https://www.elecrow.com/pcb-manufacturing.html)
- [PCBWay](https://www.pcbway.com/)
- [DirtyPCBs](http://dirtypcbs.com/store/pcbs)
- [Aisler](https://aisler.net/products/boards)
- [PCBCart](https://www.pcbcart.com/)
Expand Down
23 changes: 22 additions & 1 deletion README.md
Expand Up @@ -7,10 +7,17 @@
- MATLAB Script für die Modulschlussprüfung
- MATLAB Script der MSP HS17 (Februar 2018)

### Algemeine Elektrotechnik (aet1)
### Algemeine Elektrotechnik 1 (aet1)

- MATLAB Beispiele zur Bestimmung des Mittel- & Effektivwerts

### Algemeine Elektrotechnik 2 (aet2)

- MATLAB Lösungen zu den Übungsaufgaben
- MATLAB Lösungen zu alten Prüfungen

(Aufgaben sind nicht immer korrekt gelöst!)

### Microcontroller 1 (mc1)

- Installationshinweise für `avra` / `avrdude`
Expand All @@ -20,6 +27,20 @@

- MATLAB Aufgaben

### Analysis 2 (an2)

- diverse Geogebra Visualisierungen

### Analysis 3 (an3E)

- MATLAB Lösungen zu diversen Übungsserien

### Analogtechnik (ant)

- Simulationsfiles für das Simulationsprojekt (U- & I-Messung mit Tiefpass 4. Grades)
- LTSpice Cheatsheet mit wichtigen Tricks
- MATLAB File zur Dimensionierung von Filterkoeffizienten

---

### License
Expand Down
99 changes: 99 additions & 0 deletions an3E/An3E_Mehrdimmensionale_Analysis_Grundlagen.m
@@ -0,0 +1,99 @@
%******************************************************************************
% \details : An3E Serie 1
% \autor : Simon Burkhardt
% \file : An3E_Mehrdimmensionale_Analysis_Grundlagen.m
% \date : 17.11.2018
% \version : 1.0
%******************************************************************************

%% Grundlagen
clear all; close all; clc; format shorteng
% x-Koordinaten des Gitters
% in 1er schritten von -3 bis 3
x = -3:1:3;

% y-Koordinaten
y = -1:0.5:1;

% Erstellen eines Gitternetzes
[X Y] = meshgrid(x,y);
[X Y] = meshgrid(-10:0.5:10);

Z = 100 - X.^2 - Y.^2;
% mesh(X,Y,Z);
surf(X,Y,Z);
xlabel x
ylabel y
zlabel z

%% Beispiel S. 27
clear all; close all; clc; format shorteng

x = -2:0.1:2;
y = -2:0.1:2;
[X Y] = meshgrid(x, y);
Z = X.*exp(-X.^2-Y.^2);
surf(X,Y,Z);
xlabel x
ylabel y
zlabel z
colormap hot
%%
colormap parula
colormap jet
colormap hsv
colormap hot
colormap cool
colormap spring
colormap summer
colormap autumn
colormap winter
colormap gray
colormap bone
colormap copper
colormap pink
colormap lines

map = [1 1 0
1 0.5 0
1 0 0
1 0 0.5
0.5 0 0.5
0.1 0 0.1
0 0 0];
colormap(map)

% https://www.mathworks.com/matlabcentral/fileexchange/40318-build-custom-colormaps
[cmap] = buildcmap('kbry'); % black-blue-red-yellow
colormap(cmap)

%% Beispiel S. 34)
clear all; close all; clc; format shorteng

x = -6:0.1:6;
y = -5:0.1:5;
[X Y] = meshgrid(x, y);
Z = -X.^2+Y.^2-2.*Y;
contour(X,Y,Z, [-3 -2 -1 0 1]);
grid on
map = [0 0 0.7
0 0.7 0
0 0 0
0.7 0 0
0 0 0];
colormap(map)

%% Beispiel S. 35
clear all; close all; clc; format shorteng

x = -5:0.1:5;
y = -5:0.1:5;
[X Y] = meshgrid(x, y);
Z = sin(X)+2.*sin(Y);
contour(X, Y, Z);
%%
clear all; close all; clc; format shorteng

[X Y] = meshgrid(-5:0.1:5);
Z = sin(X)+2.*sin(Y);
surfc(X, Y, Z);
151 changes: 151 additions & 0 deletions an3E/An3E_Serie_1.m
@@ -0,0 +1,151 @@
%******************************************************************************
% \details : An3E Serie 1
% \autor : Simon Burkhardt
% \file : An3E_Serie_1.m
% \date : 22.09.2018
% \version : 1.0
%******************************************************************************
clear all; clc
format shorteng

%%
% 1)
syms x;

f_a = log(x+1);
f_a_dx = diff(f_a, x);
% 1/(x + 1)

f_b = 1/2 * asin(x)^2;
f_b_dx = diff(f_b, x)
% asin(x)/(1 - x^2)^(1/2)

f_c = -1/4 * (x-1)^4;
f_c_dx = diff(f_c, x)
% -(x - 1)^3

%%
% 2)
clear; clc;
syms x t;

f_a = (1-t)^3;
Ff_a_t = int(f_a, t)
% -(t - 1)^4/4

f_b = exp(x)*cos(t);
Ff_b_x = int(f_b, x)
%exp(x)*cos(t)

f_c = f_b;
Ff_c_t = int(f_c, t)
%exp(x)*sin(t)

f_d = x^2*exp(-x);
Ff_d_x = int(f_d, x)
% -exp(-x)*(x^2 + 2*x + 2)
lsg_d = int(f_d, x, 0, 10)
% 2 - 122*exp(-10)


%%
% Serie 1b

%%
% 2)
clear; clc;
syms x n pi;
assume(n, 'integer');

f_x = abs(x) * (pi - abs(x));
a0 = 1/pi * int(f_x, x, -pi, pi)
% vpa(a0)

%a(n) = 1/pi * int(abs(x) * (pi - abs(x))*cos(n*x), x, -pi, pi);
%simplify(a(n))
% abs(x) * (pi - abs(x))
a(n) = 1/pi * int(f_x *cos(n*x), x, -pi, pi);
an = simplify(a(n))
pretty(an)

b(n) = 1/pi * int(f_x *sin(n*x), x, -pi, pi);
bn = simplify(b(n))
pretty(bn)



%%
clear; clc;
syms x n pi;
assume(n, 'integer');

f_x = x;

a0 = 1/pi * int(f_x, x, 0, 2*pi)

a(n) = 1/pi * int(f_x * cos(n*x), x, 0, 2*pi);
b(n) = 1/pi * int(f_x * sin(n*x), x, 0, 2*pi);

an = simplify(a(n))
pretty(an)

bn = simplify(b(n))
pretty(bn)


%%
clear; clc;
syms x;

f_x = x^2;
%ezplot(f_x, [0, 2*pi]);

syms n pi;
assume(n, 'integer');

a0 = 1/pi * int(f_x, 0, 2*pi)
pretty(a0)
a(n) = 1/pi * int(f_x*cos(n*x), x, 0, 2*pi);
b(n) = 1/pi * int(f_x*sin(n*x), x, 0, 2*pi);
an = simplify(a(n))
pretty(an)
bn = simplify(b(n))
pretty(bn)

%%
clear; clc; close all;
x = linspace(0, 3*pi, 1e3); %% Periodendauer T anpassen
y = zeros(1, 1e3);

% Fourier Koeffizienten und original Funktion angeben
a0 = 8*pi^2/3;
a = @(n) 4/(n^2);
b = @(n) -4*pi/n;
f_x = @(x) mod(x, 2*pi).^2;

% a0 = pi^2/3;
% a = @(n) -2/(n^2)*(1+(-1)^n);
% b = @(n) n^0 -1;
% f_x = @(x) abs(x).*(pi-abs(x));


for m=1:1e3
y(m) = a0/2; % a0 setzen
end

for n=1:10 % Anzahl Glieder in der Summierkette
y = y + a(n).*cos(n.*x) + b(n).*sin(n.*x);
end

plot(x, y); % Fourier Plot
hold on;
plot(x, f_x(x)); % original Plot









0 comments on commit d63f864

Please sign in to comment.