Commit 8f77a287 authored by Gidon Lucian Bauer's avatar Gidon Lucian Bauer 🏳
Browse files

MSM Bonus 06 Code

parent 53dbde01
function x_dot = motorcycle_luenberger(t, x)
load('y_meas.mat', 'y_meas');
global pol_param;
A = [0 1;0 0];
B = [0;1];
C = [1 0];
K = place(A', C', [pol_param + 1i, pol_param - 1i]);
K = K';
a = @(t) 0.001 * sin(pi/10 * t) * (t - 40)^2;
x_dot = (A - K*C)*x + B * a(t) + K * y_meas(t);
end
\ No newline at end of file
function x_dot = motorcycle_system(t, x)
A = [0 1;0 0];
B = [0;1];
a = @(t) 0.001 * sin(pi/10 * t) * (t - 40)^2;
x_dot = A * x + B * a(t);
end
\ No newline at end of file
clear; clc; close all;
%% Lösen der ODEs
t_span = [0;3];
t_span = [0;1];
y_0 = [0.01, 0.5, 0.1, 1];
[t, z] = ode45(@zwei_massen_modell, t_span, y_0);
......
<deployment-project plugin="plugin.ezdeploy" plugin-version="1.0">
<configuration file="D:\Programmierung\matlab\fzt2\zwei_massen_modell\zweiMassenModell.prj" location="D:\Programmierung\matlab\fzt2\zwei_massen_modell" name="zweiMassenModell" target="target.ezdeploy.standalone" target-name="Application Compiler">
<param.appname>zweiMassenModell</param.appname>
<param.icon />
<param.icons />
<param.version>1.0</param.version>
<param.authnamewatermark>Gidon Bauer</param.authnamewatermark>
<param.email />
<param.company />
<param.summary>TEST</param.summary>
<param.description>TEST</param.description>
<param.screenshot />
<param.guid />
<param.installpath.string>\zweiMassenModell\</param.installpath.string>
<param.installpath.combo>option.installpath.programfiles</param.installpath.combo>
<param.logo />
<param.install.notes />
<param.target.install.notes />
<param.intermediate>${PROJECT_ROOT}\zweiMassenModell\for_testing</param.intermediate>
<param.files.only>${PROJECT_ROOT}\zweiMassenModell\for_redistribution_files_only</param.files.only>
<param.output>${PROJECT_ROOT}\zweiMassenModell\for_redistribution</param.output>
<param.logdir>${PROJECT_ROOT}\zweiMassenModell</param.logdir>
<param.enable.clean.build>false</param.enable.clean.build>
<param.user.defined.mcr.options />
<param.target.type>subtarget.standalone</param.target.type>
<param.support.packages />
<param.web.mcr>true</param.web.mcr>
<param.package.mcr>false</param.package.mcr>
<param.no.mcr>false</param.no.mcr>
<param.web.mcr.name>MyAppInstaller_web</param.web.mcr.name>
<param.package.mcr.name>MyAppInstaller_mcr</param.package.mcr.name>
<param.no.mcr.name>MyAppInstaller_app</param.no.mcr.name>
<param.windows.command.prompt>true</param.windows.command.prompt>
<param.create.log>false</param.create.log>
<param.log.file />
<param.native.matlab>false</param.native.matlab>
<param.checkbox>false</param.checkbox>
<param.example />
<param.help.text>Syntax
zweiMassenModell -?
zweiMassenModell ~ y
Input Arguments
-? print help on how to use the application
~ y input arguments
Description
TEST</param.help.text>
<unset>
<param.icon />
<param.icons />
<param.version />
<param.email />
<param.company />
<param.screenshot />
<param.guid />
<param.installpath.string />
<param.installpath.combo />
<param.logo />
<param.install.notes />
<param.target.install.notes />
<param.intermediate />
<param.files.only />
<param.output />
<param.logdir />
<param.enable.clean.build />
<param.user.defined.mcr.options />
<param.target.type />
<param.support.packages />
<param.web.mcr />
<param.package.mcr />
<param.no.mcr />
<param.web.mcr.name />
<param.package.mcr.name />
<param.no.mcr.name />
<param.windows.command.prompt />
<param.create.log />
<param.log.file />
<param.native.matlab />
<param.checkbox />
<param.example />
</unset>
<fileset.main>
<file>${PROJECT_ROOT}\zweiMassenModell.m</file>
</fileset.main>
<fileset.resources />
<fileset.package />
<fileset.depfun />
<build-deliverables>
<file location="${PROJECT_ROOT}\zweiMassenModell\for_testing" name="readme.txt" optional="true">D:\Programmierung\matlab\fzt2\zwei_massen_modell\zweiMassenModell\for_testing\readme.txt</file>
<file location="${PROJECT_ROOT}\zweiMassenModell\for_testing" name="zweiMassenModell.exe" optional="false">D:\Programmierung\matlab\fzt2\zwei_massen_modell\zweiMassenModell\for_testing\zweiMassenModell.exe</file>
<file location="${PROJECT_ROOT}\zweiMassenModell\for_testing" name="splash.png" optional="false">D:\Programmierung\matlab\fzt2\zwei_massen_modell\zweiMassenModell\for_testing\splash.png</file>
</build-deliverables>
<workflow />
<matlab>
<root>C:\Program Files\MATLAB\R2021a</root>
<toolboxes />
</matlab>
<platform>
<unix>false</unix>
<mac>false</mac>
<windows>true</windows>
<win2k>false</win2k>
<winxp>false</winxp>
<vista>false</vista>
<linux>false</linux>
<solaris>false</solaris>
<osver>10.0</osver>
<os32>false</os32>
<os64>true</os64>
<arch>win64</arch>
<matlab>true</matlab>
</platform>
</configuration>
</deployment-project>
\ No newline at end of file
<html><meta charset="UTF-8"><pre>
<font color=blue>mcc -o zweiMassenModell -W 'WinMain:zweiMassenModell,version=1.0' -T link:exe -d D:\Programmierung\matlab\fzt2\zwei_massen_modell\zweiMassenModell\for_testing -v D:\Programmierung\matlab\fzt2\zwei_massen_modell\zweiMassenModell.m -r 'C:\Program Files\MATLAB\R2021a\toolbox\compiler\resources\default_icon.ico' </font>
Compiler version: 8.2 (R2021a)
Analyzing file dependencies.
Parsing file "D:\Programmierung\matlab\fzt2\zwei_massen_modell\zweiMassenModell.m"
(referenced from command line).
Generating file "D:\Programmierung\matlab\fzt2\zwei_massen_modell\zweiMassenModell\for_testing\readme.txt".
<font color=blue>Packaging...</font>
Creating the bundle...
Creating the install agent URL file...
Web based installer created at D:\Programmierung\matlab\fzt2\zwei_massen_modell\zweiMassenModell\for_redistribution\MyAppInstaller_web.exe.
Packaging complete.
Elapsed packaging time was: 9 seconds.
</pre></html>
zweiMassenModell Executable
1. Prerequisites for Deployment
Verify that version 9.10 (R2021a) of the MATLAB Runtime is installed.
If not, you can run the MATLAB Runtime installer.
To find its location, enter
>>mcrinstaller
at the MATLAB prompt.
NOTE: You will need administrator rights to run the MATLAB Runtime installer.
Alternatively, download and install the Windows version of the MATLAB Runtime for R2021a
from the following link on the MathWorks website:
https://www.mathworks.com/products/compiler/mcr/index.html
For more information about the MATLAB Runtime and the MATLAB Runtime installer, see
"Distribute Applications" in the MATLAB Compiler documentation
in the MathWorks Documentation Center.
2. Files to Deploy and Package
Files to Package for Standalone
================================
-zweiMassenModell.exe
-MCRInstaller.exe
Note: if end users are unable to download the MATLAB Runtime using the
instructions in the previous section, include it when building your
component by clicking the "Runtime included in package" link in the
Deployment Tool.
-This readme file
3. Definitions
For information on deployment terminology, go to
https://www.mathworks.com/help and select MATLAB Compiler >
Getting Started > About Application Deployment >
Deployment Product Terms in the MathWorks Documentation
Center.
The List of Excluded Files
Excluded files Exclusion Message ID Reason For Exclusion Exclusion Rule
zweiMassenModell Executable
1. Prerequisites for Deployment
Verify that version 9.10 (R2021a) of the MATLAB Runtime is installed.
If not, you can run the MATLAB Runtime installer.
To find its location, enter
>>mcrinstaller
at the MATLAB prompt.
NOTE: You will need administrator rights to run the MATLAB Runtime installer.
Alternatively, download and install the Windows version of the MATLAB Runtime for R2021a
from the following link on the MathWorks website:
https://www.mathworks.com/products/compiler/mcr/index.html
For more information about the MATLAB Runtime and the MATLAB Runtime installer, see
"Distribute Applications" in the MATLAB Compiler documentation
in the MathWorks Documentation Center.
2. Files to Deploy and Package
Files to Package for Standalone
================================
-zweiMassenModell.exe
-MCRInstaller.exe
Note: if end users are unable to download the MATLAB Runtime using the
instructions in the previous section, include it when building your
component by clicking the "Runtime included in package" link in the
Deployment Tool.
-This readme file
3. Definitions
For information on deployment terminology, go to
https://www.mathworks.com/help and select MATLAB Compiler >
Getting Started > About Application Deployment >
Deployment Product Terms in the MathWorks Documentation
Center.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment