From c66074fc72f781a970b6c1daa48f8db852106f4b Mon Sep 17 00:00:00 2001 From: "g.mandl" Date: Wed, 22 Oct 2025 23:16:32 +0200 Subject: [PATCH] =?UTF-8?q?Dateien=20nach=20=E2=80=9EBSP=5F2=5FC=E2=80=9C?= =?UTF-8?q?=20hochladen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BSP_2_C/bsp_2_c_visualisierung.m | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 BSP_2_C/bsp_2_c_visualisierung.m diff --git a/BSP_2_C/bsp_2_c_visualisierung.m b/BSP_2_C/bsp_2_c_visualisierung.m new file mode 100644 index 0000000..0b84865 --- /dev/null +++ b/BSP_2_C/bsp_2_c_visualisierung.m @@ -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; \ No newline at end of file