(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 4.2' Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 11259, 340]*) (*NotebookOutlinePosition[ 14413, 440]*) (* CellTagsIndexPosition[ 14321, 433]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Frequency Domain System Identification", "Section", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->{"8.2", "c:5"}], Cell["Make sure the application is loaded.", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ \(<< NumericalControlMethods`\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell["Load the collection of test examples.", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ \(<< NumericalControlMethods`Examples`\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[TextData[{ "This is a discrete\[Hyphen]time state\[Hyphen]space system of a simple \ process control of a ", ButtonBox["paper machine", ButtonData:>{"ANMA.2.3", "c:21"}, ButtonStyle->"AddOnsLinkText"], "." }], "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[CellGroupData[{ Cell[BoxData[ \(ss = PaperMachine[]\ // \ N\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ FormBox[ TagBox[ FormBox[ SubsuperscriptBox[ FormBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"0.5`", "0.`", "0.`", "0.`", "1.`"}, {"1.`", "0.`", "0.`", "0.`", "0.`"}, {"0.`", "1.`", "0.`", "0.`", "0.`"}, {"0.`", "0.`", "1.`", "0.`", "0.`"}, {"0.`", "0.`", "0.`", "1.`", "0"} }, ColumnAlignments->{Decimal}, RowLines->{False, False, False, True, False}, ColumnLines->{False, False, False, True, False}, AllowScriptLevelChange->False], "\[NoBreak]", ")"}], "TraditionalForm"], FormBox["1.`", "TraditionalForm"], FormBox[ StyleBox["\<\"\[ScriptCapitalS]\"\>", Editable->False, ShowStringCharacters->False], "TraditionalForm"], MultilineFunction->None], "TraditionalForm"], (StateSpace[ SlotSequence[ 1]]&)], TraditionalForm]], "Output", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"] }, Open ]], Cell["Here is the transfer function of the defined system. ", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[CellGroupData[{ Cell[BoxData[ \(tf = Chop[ExpandRational[TransferFunction[ss]]]\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ FormBox[ TagBox[ FormBox[ SubsuperscriptBox[ FormBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {\(1.0000000000000009`\/\(\[ScriptZ]\^4 - 0.5000000000000003`\ \[ScriptZ]\^3\)\)} }, AllowScriptLevelChange->False], "\[NoBreak]", ")"}], "TraditionalForm"], FormBox["1.`", "TraditionalForm"], FormBox[ StyleBox["\<\"\[ScriptCapitalT]\"\>", Editable->False, ShowStringCharacters->False], "TraditionalForm"], MultilineFunction->None], "TraditionalForm"], (TransferFunction[ SlotSequence[ 1]]&)], TraditionalForm]], "Output", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"] }, Open ]], Cell["\<\ This is an a priori estimate of the order of the state\[Hyphen]space system \ to be identified.\ \>", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ \(\(maxorder = 6;\)\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell["\<\ Here is the number of measurements that is enough to identify the system.\ \>", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ \(\(len = 2\ \((maxorder + 1)\);\)\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell["This is the sampling rate of the system.", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[CellGroupData[{ Cell[BoxData[ \(\[Nu] = 1\/SamplingPeriod[ss]\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ \(1.`\)], "Output", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"] }, Open ]], Cell["Here are some selected frequencies.", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ \(\(frequencies = Rest[Range[0, 2\ \[Pi]\ \[Nu], \(2\ \[Pi]\ \[Nu]\)\/len]];\)\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[TextData[{ "These points in the ", Cell[BoxData[ \(TraditionalForm\`z\)]], "\[Hyphen]plane correspond to the selected frequencies." }], "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ \(\(z = Exp[\(\[ImaginaryI]\ frequencies\)\/\[Nu]];\)\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell["\<\ The frequency points are coupled with the corresponding transfer matrices.\ \>", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ \(\(tfsample = Transpose[{z, tf /@ z}];\)\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell["\<\ This identifies the state\[Hyphen]space system from its sampled transfer \ function.\ \>", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[CellGroupData[{ Cell[BoxData[ \(ss\&^ = FrequencyResponseIdentify[tfsample, MaxOrder \[Rule] maxorder, Sampled \[Rule] Period[1. ]]\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ FormBox[ TagBox[ FormBox[ SubsuperscriptBox[ FormBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"0.8814393339258184`", "0.3432308062340244`", "0.0501035937220622`", \(-0.073784676002719`\), \ \(-0.48564086151653985`\)}, {\(-0.33663269132887225`\), "0.49169721227510654`", \(-0.5529341668655011`\), "0.05030893659238392`", \(-0.6802131202864697`\)}, {"0.048652143982436946`", "0.5474399711669202`", \(-0.13091237964291572`\), "0.500720249041615`", "0.5607537699184854`"}, {"0.07138249375058663`", "0.049625014896950606`", \(-0.4988702316934763`\), \ \(-0.7422241665580089`\), "0.3005463842426142`"}, {\(-0.49642141337525686`\), "0.6819465226459085`", "0.5565966576559518`", \(-0.29721610246301217`\), \ \(-2.949029909160572`*^-17\)} }, ColumnAlignments->{Decimal}, RowLines->{False, False, False, True, False}, ColumnLines->{False, False, False, True, False}, AllowScriptLevelChange->False], "\[NoBreak]", ")"}], "TraditionalForm"], FormBox["1.`", "TraditionalForm"], FormBox[ StyleBox["\<\"\[ScriptCapitalS]\"\>", Editable->False, ShowStringCharacters->False], "TraditionalForm"], MultilineFunction->None], "TraditionalForm"], (StateSpace[ SlotSequence[ 1]]&)], TraditionalForm]], "Output", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"] }, Open ]], Cell["\<\ Here is the transfer function of the identified state\[Hyphen]space system.\ \>", "MathCaption", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[CellGroupData[{ Cell[BoxData[ \(Chop[ExpandRational[TransferFunction[ss\&^]]]\)], "Input", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"], Cell[BoxData[ FormBox[ TagBox[ FormBox[ SubsuperscriptBox[ FormBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {\(1.0000000000000013`\/\(\[ScriptZ]\^4 - 0.5000000000000004`\ \[ScriptZ]\^3\)\)} }, AllowScriptLevelChange->False], "\[NoBreak]", ")"}], "TraditionalForm"], FormBox["1.`", "TraditionalForm"], FormBox[ StyleBox["\<\"\[ScriptCapitalT]\"\>", Editable->False, ShowStringCharacters->False], "TraditionalForm"], MultilineFunction->None], "TraditionalForm"], (TransferFunction[ SlotSequence[ 1]]&)], TraditionalForm]], "Output", CellMargins->{{47, Inherited}, {Inherited, Inherited}}, CellTags->"8.2"] }, Open ]] }, Open ]] }, FrontEndVersion->"4.2 for Microsoft Windows", ScreenRectangle->{{0, 1024}, {0, 695}}, PrintingStyleEnvironment->"EnhancedPrintout", WindowToolbars->{}, WindowSize->{1018, 668}, WindowMargins->{{0, Automatic}, {Automatic, 0}}, PrintingCopies->1, PrintingPageRange->{1, 3}, PrintingOptions->{"PrintingMargins"->{{97, 97}, {180, 64}}, "PrintCellBrackets"->False, "PrintRegistrationMarks"->True, "PrintMultipleHorizontalPages"->False}, Magnification->1, StyleDefinitions -> "Demo.nb" ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{ "8.2"->{ Cell[1776, 53, 143, 2, 82, "Section", CellTags->{"8.2", "c:5"}], Cell[1922, 57, 136, 2, 25, "MathCaption", CellTags->"8.2"], Cell[2061, 61, 137, 3, 34, "Input", CellTags->"8.2"], Cell[2201, 66, 137, 2, 25, "MathCaption", CellTags->"8.2"], Cell[2341, 70, 146, 3, 34, "Input", CellTags->"8.2"], Cell[2490, 75, 320, 9, 25, "MathCaption", CellTags->"8.2"], Cell[2835, 88, 138, 3, 34, "Input", CellTags->"8.2"], Cell[2976, 93, 1224, 30, 119, "Output", CellTags->"8.2"], Cell[4215, 126, 153, 2, 25, "MathCaption", CellTags->"8.2"], Cell[4393, 132, 157, 3, 34, "Input", CellTags->"8.2"], Cell[4553, 137, 900, 24, 65, "Output", CellTags->"8.2"], Cell[5468, 164, 203, 5, 25, "MathCaption", CellTags->"8.2"], Cell[5674, 171, 127, 3, 34, "Input", CellTags->"8.2"], Cell[5804, 176, 181, 4, 25, "MathCaption", CellTags->"8.2"], Cell[5988, 182, 142, 3, 34, "Input", CellTags->"8.2"], Cell[6133, 187, 140, 2, 25, "MathCaption", CellTags->"8.2"], Cell[6298, 193, 139, 3, 48, "Input", CellTags->"8.2"], Cell[6440, 198, 114, 3, 48, "Output", CellTags->"8.2"], Cell[6569, 204, 135, 2, 25, "MathCaption", CellTags->"8.2"], Cell[6707, 208, 208, 5, 46, "Input", CellTags->"8.2"], Cell[6918, 215, 244, 7, 25, "MathCaption", CellTags->"8.2"], Cell[7165, 224, 161, 3, 47, "Input", CellTags->"8.2"], Cell[7329, 229, 182, 4, 25, "MathCaption", CellTags->"8.2"], Cell[7514, 235, 149, 3, 34, "Input", CellTags->"8.2"], Cell[7666, 240, 192, 5, 25, "MathCaption", CellTags->"8.2"], Cell[7883, 249, 225, 5, 34, "Input", CellTags->"8.2"], Cell[8111, 256, 1839, 40, 123, "Output", CellTags->"8.2"], Cell[9965, 299, 183, 4, 25, "MathCaption", CellTags->"8.2"], Cell[10173, 307, 155, 3, 34, "Input", CellTags->"8.2"], Cell[10331, 312, 900, 24, 65, "Output", CellTags->"8.2"]}, "c:5"->{ Cell[1776, 53, 143, 2, 82, "Section", CellTags->{"8.2", "c:5"}]} } *) (*CellTagsIndex CellTagsIndex->{ {"8.2", 12168, 365}, {"c:5", 14220, 426} } *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1776, 53, 143, 2, 82, "Section", CellTags->{"8.2", "c:5"}], Cell[1922, 57, 136, 2, 25, "MathCaption", CellTags->"8.2"], Cell[2061, 61, 137, 3, 34, "Input", CellTags->"8.2"], Cell[2201, 66, 137, 2, 25, "MathCaption", CellTags->"8.2"], Cell[2341, 70, 146, 3, 34, "Input", CellTags->"8.2"], Cell[2490, 75, 320, 9, 25, "MathCaption", CellTags->"8.2"], Cell[CellGroupData[{ Cell[2835, 88, 138, 3, 34, "Input", CellTags->"8.2"], Cell[2976, 93, 1224, 30, 119, "Output", CellTags->"8.2"] }, Open ]], Cell[4215, 126, 153, 2, 25, "MathCaption", CellTags->"8.2"], Cell[CellGroupData[{ Cell[4393, 132, 157, 3, 34, "Input", CellTags->"8.2"], Cell[4553, 137, 900, 24, 65, "Output", CellTags->"8.2"] }, Open ]], Cell[5468, 164, 203, 5, 25, "MathCaption", CellTags->"8.2"], Cell[5674, 171, 127, 3, 34, "Input", CellTags->"8.2"], Cell[5804, 176, 181, 4, 25, "MathCaption", CellTags->"8.2"], Cell[5988, 182, 142, 3, 34, "Input", CellTags->"8.2"], Cell[6133, 187, 140, 2, 25, "MathCaption", CellTags->"8.2"], Cell[CellGroupData[{ Cell[6298, 193, 139, 3, 48, "Input", CellTags->"8.2"], Cell[6440, 198, 114, 3, 48, "Output", CellTags->"8.2"] }, Open ]], Cell[6569, 204, 135, 2, 25, "MathCaption", CellTags->"8.2"], Cell[6707, 208, 208, 5, 46, "Input", CellTags->"8.2"], Cell[6918, 215, 244, 7, 25, "MathCaption", CellTags->"8.2"], Cell[7165, 224, 161, 3, 47, "Input", CellTags->"8.2"], Cell[7329, 229, 182, 4, 25, "MathCaption", CellTags->"8.2"], Cell[7514, 235, 149, 3, 34, "Input", CellTags->"8.2"], Cell[7666, 240, 192, 5, 25, "MathCaption", CellTags->"8.2"], Cell[CellGroupData[{ Cell[7883, 249, 225, 5, 34, "Input", CellTags->"8.2"], Cell[8111, 256, 1839, 40, 123, "Output", CellTags->"8.2"] }, Open ]], Cell[9965, 299, 183, 4, 25, "MathCaption", CellTags->"8.2"], Cell[CellGroupData[{ Cell[10173, 307, 155, 3, 34, "Input", CellTags->"8.2"], Cell[10331, 312, 900, 24, 65, "Output", CellTags->"8.2"] }, Open ]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)