Dateien nach „BSP_2_C“ hochladen
This commit is contained in:
parent
56192999bd
commit
c66074fc72
1 changed files with 18 additions and 0 deletions
18
BSP_2_C/bsp_2_c_visualisierung.m
Normal file
18
BSP_2_C/bsp_2_c_visualisierung.m
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
% SciComp Bsp 2_C
|
||||
% Visualisierung der Lösungsfunktionen
|
||||
|
||||
x = linspace(0,1,1000);
|
||||
p_values = [-100, -10, -1, 1, 10, 100];
|
||||
|
||||
for p = p_values
|
||||
u = (exp(p*x)-1)/(exp(p)-1);
|
||||
plot(x, u, 'DisplayName', num2str(p));
|
||||
hold on
|
||||
end
|
||||
|
||||
plot(x, x, 'DisplayName', '0');
|
||||
|
||||
title('Visualisierung der Lösungsfunktion für verschiedene p');
|
||||
xlabel('x')
|
||||
ylabel('u(x)');
|
||||
legend show;
|
||||
Loading…
Add table
Add a link
Reference in a new issue