summaryrefslogtreecommitdiff
path: root/Prof_Arya/Linearisation_LinMod.m
diff options
context:
space:
mode:
authorSiddharth112352019-09-03 18:09:16 +0530
committerSiddharth112352019-09-03 18:09:16 +0530
commitb4b6aa36e3486a3544acc52419149b5671f841e9 (patch)
tree66c1783158f23e6d21c77324156fc57e18d4ac67 /Prof_Arya/Linearisation_LinMod.m
parentf5266f634f4fb4fd39933a83551a01cf446256b8 (diff)
downloadOpenModelica_HIL-master.tar.gz
OpenModelica_HIL-master.tar.bz2
OpenModelica_HIL-master.zip
Pushing entire Modelica HIL Tasks repoHEADmaster
Diffstat (limited to 'Prof_Arya/Linearisation_LinMod.m')
-rw-r--r--Prof_Arya/Linearisation_LinMod.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/Prof_Arya/Linearisation_LinMod.m b/Prof_Arya/Linearisation_LinMod.m
new file mode 100644
index 0000000..05123d9
--- /dev/null
+++ b/Prof_Arya/Linearisation_LinMod.m
@@ -0,0 +1,16 @@
+[A, B, C, D] = linmod('Cessna_6DOF_Wind_trim'); % V gamma q alpha
+
+A_lon = [A(1,1) A(1,8) A(1,11) A(1,2);
+ A(8,1) A(8,8) A(8,11) A(8,2);
+ A(11,1) A(11,8) A(11,11) A(11,2);
+ A(2,1) A(2,8) A(2,11) A(2,2)];
+
+A_phug = [A(1,1) A(1,8);
+ A(8,1) A(8,8)];
+
+A_short = [A(11,11) A(11,2);
+ A(2,11) A(2,2)];
+
+%display(eig(A_lon))
+%display(eig(A_phug))
+%display(eig(A_short)) \ No newline at end of file