Model { Name "leastsquarespolyfit_ref" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off RecordCoverage off CovPath "/" CovSaveName "covdata" CovNameIncrementing off CovHtmlReporting on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Tue Sep 12 09:56:48 2000" Creator "ckamachi" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "ckamachi" ModifiedDateFormat "%" LastModifiedDate "Wed Sep 13 10:07:33 2000" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" StartTime "0.0" StopTime "10.0" SolverMode "Auto" Solver "ode45" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" LimitDataPoints on MaxDataPoints "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" SingleTaskRateTransMsg "none" MultiTaskRateTransMsg "error" IntegerOverflowMsg "warning" CheckForMatrixSingularity "none" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" LinearizationMsg "none" VectorMatrixConversionMsg "none" SfunCompatibilityCheckMsg "none" BlockPriorityViolationMsg "warning" ArrayBoundsChecking "none" ConsistencyChecking "none" ZeroCross on Profile off SimulationMode "normal" RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off TLCProfiler off TLCDebug off TLCCoverage off AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeLogAll on OptimizeBlockIOStorage on BufferReuse on ParameterPooling on BlockReductionOpt off BooleanDataType off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "leastsquarespolyfit_ref" Location [250, 163, 892, 397] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Reference Name "DSP\nConstant" Ports [0, 1] Position [75, 110, 130, 140] SourceBlock "dspsrcs3/DSP\nConstant" SourceType "DSP Constant" Value "[0:31]'/31" InterpretAs1D off SampleMode "Discrete" Ts "1" FramebasedOutput off Port { PortNumber 1 Name "x" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Reference Name "DSP\nConstant1" Ports [0, 1] Position [75, 169, 130, 201] SourceBlock "dspsrcs3/DSP\nConstant" SourceType "DSP Constant" Value "[-2 0 3]'" InterpretAs1D off SampleMode "Discrete" Ts "1" FramebasedOutput off Port { PortNumber 1 Name "c" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Display Name "Display" Ports [1] Position [480, 125, 565, 185] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Reference Name "Least Squares\nPolynomial Fit" Ports [1, 1] Position [360, 137, 420, 173] SourceBlock "dsppolyfun/Least Squares\nPolynomial Fit" SourceType "Least Squares Polynomial Fit" X "(0:31) / 31" N "2" Port { PortNumber 1 Name "c" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Reference Name "Polynomial\nEvaluation" Ports [2, 1] Position [195, 136, 300, 174] SourceBlock "dsppolyfun/Polynomial\nEvaluation" SourceType "Polynomial Evaluation" useConstCoeffs off constCoeffs "[5 4 3 2 1]" Port { PortNumber 1 Name "u" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Line { Name "x" Labels [2, 0] SrcBlock "DSP\nConstant" SrcPort 1 Points [10, 0; 0, 20] DstBlock "Polynomial\nEvaluation" DstPort 1 } Line { Name "u" Labels [0, 0] SrcBlock "Polynomial\nEvaluation" SrcPort 1 DstBlock "Least Squares\nPolynomial Fit" DstPort 1 } Line { Name "c" Labels [0, 0] SrcBlock "Least Squares\nPolynomial Fit" SrcPort 1 DstBlock "Display" DstPort 1 } Line { Name "c" Labels [2, 1] SrcBlock "DSP\nConstant1" SrcPort 1 Points [10, 0; 0, -20] DstBlock "Polynomial\nEvaluation" DstPort 2 } Annotation { Position [13, 27] HorizontalAlignment "left" ForegroundColor "blue" Text "Least Squares Polynomial Fit Example" DropShadow on FontName "Arial" FontSize 16 FontWeight "bold" } Annotation { Position [326, 53] HorizontalAlignment "left" ForegroundColor "blue" Text "In this example, a Polynomial Evaluation block " "uses a 2nd-order\npolynomial with coefficients [-2 0 3] to generate four valu" "es of\nthe dependent variable, u, from four values of the independent\nvariab" "le, x. The Least Squares Polynomial Fit block uses the u\nvalues and x values" " (specified in dialog box) to reconstruct the \npolynomial coefficients." FontName "Arial" } } }