# $Revision$
Library {
  Name			  "simulink_extras"
  Version		  6.0
  PostLoadFcn		  "setsysloc simulink_extras"
  SaveDefaultBlockParams  on
  LibraryLinkDisplay	  "none"
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  CovSaveName		  "covdata"
  CovMetricSettings	  "d"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeReport	  off
  CovReportOnPause	  on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  BlockNameDataTip	  off
  BlockParametersDataTip  on
  BlockDescriptionStringDataTip	off
  ToolBar		  off
  StatusBar		  off
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Tue Jun 16 15:12:24 1998"
  Creator		  "ldean"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "raberg"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Wed Mar 24 10:55:16 2004"
  ModelVersionFormat	  "1.%<AutoIncrement:35>"
  ConfigurationManager	  "none"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  ExtModeBatchMode	  off
  ExtModeEnableFloating	  on
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigDurationFloating "auto"
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock off
  ProdHWDeviceType	  "32-bit Generic"
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.0.3"
      Array {
	Type			"Handle"
	Dimension		8
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.0.3"
	  StartTime		  "0.0"
	  StopTime		  "10.0"
	  AbsTol		  "auto"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "SingleTasking"
	  Solver		  "ode45"
	  ZeroCrossControl	  "UseLocalSettings"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.0.3"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  on
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  on
	  SaveState		  off
	  SaveTime		  on
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Array {
	    Type		    "Cell"
	    Dimension		    5
	    Cell		    "ZeroExternalMemoryAtStartup"
	    Cell		    "ZeroInternalMemoryAtStartup"
	    Cell		    "InitFltsAndDblsToZero"
	    Cell		    "OptimizeModelRefInitCode"
	    Cell		    "NoFixptDivByZeroProtection"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.0.3"
	  BlockReduction	  on
	  BooleanDataType	  off
	  ConditionallyExecuteInputs on
	  ConditionalExecOptimization "on_for_testing"
	  InlineParams		  off
	  InlineInvariantSignals  on
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  ParameterPooling	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  OptimizeModelRefInitCode off
	  LifeSpan		  "inf"
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.0.3"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg on
	  CheckExecutionContextRuntimeOutputMsg	on
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterPrecisionLossMsg "warning"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  ModelReferenceSimTargetVerbose off
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.0.3"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  32
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "Unspecified"
	  ProdWordSize		  32
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "32-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "Specified"
	  TargetUnknown		  on
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.0.3"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  8
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    "IncludeHyperlinkInReport"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.0.3"
	  SystemTargetFile	  "grt.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  TemplateMakefile	  "grt_default_tmf"
	  GenerateReport	  off
	  SaveLog		  off
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ConfigAtBuild		  off
	  IncludeHyperlinkInReport off
	  LaunchReport		  off
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      9
	      Array {
		Type			"Cell"
		Dimension		9
		Cell			"IgnoreCustomStorageClasses"
		Cell			"InsertBlockDesc"
		Cell			"SFDataObjDesc"
		Cell			"SimulinkDataObjDesc"
		Cell			"DefineNamingRule"
		Cell			"SignalNamingRule"
		Cell			"ParamNamingRule"
		Cell			"InlinedPrmAccess"
		Cell			"CustomSymbolStr"
		PropName		"DisabledProps"
	      }
	      Version		      "1.0.3"
	      ForceParamTrailComments off
	      GenerateComments	      on
	      IgnoreCustomStorageClasses on
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement off
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      PrefixModelToSubsysFcnNames on
	      CustomSymbolStr	      "$R$N$M"
	      MangleLength	      1
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	    }
	    Simulink.GRTTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      10
	      Array {
		Type			"Cell"
		Dimension		12
		Cell			"IncludeMdlTerminateFcn"
		Cell			"CombineOutputUpdateFcns"
		Cell			"SuppressErrorStatus"
		Cell			"ERTCustomFileBanners"
		Cell			"GenerateSampleERTMain"
		Cell			"MultiInstanceERTCode"
		Cell			"PurelyIntegerCode"
		Cell			"SupportNonFinite"
		Cell			"SupportComplex"
		Cell			"SupportAbsoluteTime"
		Cell			"SupportContinuousTime"
		Cell			"SupportNonInlinedSFcns"
		PropName		"DisabledProps"
	      }
	      Version		      "1.0.3"
	      TargetFcnLib	      "ansi_tfl_tmw.mat"
	      GenFloatMathFcnCalls    "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      IsPILTarget	      off
	      ModelReferenceCompliant on
	      IncludeMdlTerminateFcn  on
	      CombineOutputUpdateFcns off
	      SuppressErrorStatus     off
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    off
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      on
	      MultiInstanceERTCode    off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      PurelyIntegerCode	      off
	      SupportContinuousTime   on
	      SupportNonInlinedSFcns  on
	      ExtMode		      off
	      ExtModeStaticAlloc      off
	      ExtModeTesting	      off
	      ExtModeStaticAllocSize  1000000
	      ExtModeTransport	      0
	      ExtModeMexFile	      "ext_comm"
	      RTWCAPISignals	      off
	      RTWCAPIParams	      off
	      RTWCAPIStates	      off
	      GenerateASAP2	      off
	    }
	    PropName		    "Components"
	  }
	}
	Simulink.SFSimCC {
	  $ObjectID		  11
	  Version		  "1.0.3"
	  SFSimApplyToAllLibs	  on
	  SFSimEnableDebug	  on
	  SFSimOverflowDetection  on
	  SFSimEcho		  on
	  SFSimBuildMode	  "Incremental"
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      SimulationMode	      "normal"
      CurrentDlgPage	      "Solver"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Bias
      Bias		      "0"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      CombinatorialLogic
      TruthTable	      "[0 0;0 1;0 1;1 0;0 1;1 0;1 0;1 1]"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "sfix(16)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "2^0"
      SampleTime	      "inf"
    }
    Block {
      BlockType		      DataTypeConversion
      OutDataTypeMode	      "Inherit via back propagation"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      ConvertRealWorld	      "Real World Value (RWV)"
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      Derivative
      LinearizePole	      "inf"
    }
    Block {
      BlockType		      DiscreteStateSpace
      A			      "1"
      B			      "1"
      C			      "1"
      D			      "1"
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
      Realization	      "auto"
    }
    Block {
      BlockType		      EnablePort
      StatesWhenEnabling      "held"
      ShowOutputPort	      off
      ZeroCross		      on
    }
    Block {
      BlockType		      Fcn
      Expr		      "sin(u[1])"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Logic
      Operator		      "AND"
      Inputs		      "2"
      AllPortsSameDT	      on
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Memory
      X0		      "0"
      InheritSampleTime	      off
      LinearizeMemory	      off
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Rounding
      Operator		      "floor"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Saturate
      UpperLimit	      "0.5"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      PortCounts	      "[]"
      SFunctionModules	      "''"
    }
    Block {
      BlockType		      StateSpace
      A			      "1"
      B			      "1"
      C			      "1"
      D			      "1"
      X0		      "0"
      AbsoluteTolerance	      "auto"
      Realization	      "auto"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      Realization	      "auto"
    }
    Block {
      BlockType		      TransportDelay
      DelayTime		      "1"
      InitialInput	      "0"
      BufferSize	      "1024"
      PadeOrder		      "0"
      TransDelayFeedthrough   off
    }
    Block {
      BlockType		      TriggerPort
      TriggerType	      "rising"
      StatesWhenEnabling      "inherit"
      ShowOutputPort	      off
      OutputDataType	      "auto"
      SampleTimeType	      "triggered"
      SampleTime	      "1"
      ZeroCross		      on
    }
    Block {
      BlockType		      UnitDelay
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
  }
  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		    "simulink_extras"
    Location		    [21, 80, 456, 202]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "Additional\nDiscrete"
      Ports		      []
      Position		      [87, 22, 137, 72]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      PropExecContextAcrossSSBoundary on
      RTWSystemCode	      "Auto"
      MaskDisplay	      " plot([-20 20],[-15 -15],[-15 -15],[-20 20], [ "
"-15  -10  -10 -5 -5  0  0 5 5 10 10 15 15 20],[-10 -10 2  2  13 13 8  8  4  4"
"  1  1  -1 -1])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Additional\nDiscrete"
	Location		[108, 232, 347, 560]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "Discrete\nTransfer Fcn\n(with initial outpu"
"ts)"
	  Ports			  [1, 1]
	  Position		  [130, 12, 190, 48]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Discrete Transfer Function with Initial Out"
"puts"
	  MaskDescription	  "Vector expressions for numerator, and denom"
"inator. Coefficients are in descending powers of z."
	  MaskHelp		  "Specify the initial output for the transfer"
" function.  An optimization routine attempts to determine the appropriate ini"
"tial states so that the specified initial output is achieved.  For more detai"
"ls, see the m-file getxo.m"
	  MaskPromptString	  "Numerator:|Denominator:|Initial input:|Init"
"ial output:|Sample time:"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "N=@1;D=@2;U0=@3;Y0=@4;TS=@5;"
	  MaskInitialization	  "[A,B,C,Dd]=tf2ss(N,D);if (isempty(Y0));[m,n"
"]=size(A);X0=zeros(1,m); end;if (isempty(U0));[m,p]=size(B);U0=zeros(1,p);end"
";X0=getxo(A,B,C,Dd,U0,Y0,1);"
	  MaskDisplay		  "dpoly(N,D,'z')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1]|[1  .5]|[1]|-.5|1"
	  MaskTabNameString	  ",,,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Discrete\nTransfer Fcn\n(with initial out"
"puts)"
	    Location		    [374, 406, 663, 523]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      DiscreteStateSpace
	      Name		      "Discrete\nState Space"
	      Position		      [80, 24, 190, 66]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "Dd"
	      X0		      "X0"
	      SampleTime	      "TS"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [220, 38, 250, 52]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Discrete\nState Space"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Discrete\nState Space"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Discrete\nTransfer Fcn\n(with initial state"
"s)"
	  Ports			  [1, 1]
	  Position		  [25, 12, 85, 48]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Discrete Transfer Function with Initial Sta"
"tes"
	  MaskDescription	  "Vector expressions for numerator, and denom"
"inator. Coefficients are in descending powers of z."
	  MaskHelp		  "Specify the initial states for the transfer"
" function.  The state ordering is determined by the m-file tf2ss.  There is n"
"o unique mapping of the states in a transfer function to states in a state-sp"
"ace representation.  However, tf2ss will consistently use the same mapping fo"
"r a given transfer function.\n"
	  MaskPromptString	  "Numerator:|Denominator:|Initial conditions:"
"|Sample time:"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "N=@1;D=@2;X0=@3;TS=@4;"
	  MaskInitialization	  " [A,B,C,Dd]=tf2ss(N,D);if (isempty(X0));[m,"
"n]=size(A);X0=zeros(1,m); end;"
	  MaskDisplay		  "dpoly(N,D,'z')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1]|[1  .5]|[1]|.5"
	  MaskTabNameString	  ",,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Discrete\nTransfer Fcn\n(with initial sta"
"tes)"
	    Location		    [729, 65, 1010, 180]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      DiscreteStateSpace
	      Name		      "Discrete\nState Space"
	      Position		      [80, 27, 185, 63]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "Dd"
	      X0		      "X0"
	      SampleTime	      "TS"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [210, 38, 240, 52]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Discrete\nState Space"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Discrete\nState Space"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Discrete\nZero-Pole\n(with initial outputs)"
	  Ports			  [1, 1]
	  Position		  [130, 97, 190, 133]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Discrete Zero-Pole with Initial Outputs"
	  MaskDescription	  "Vector expressions for numerator, denominat"
"or, and gain."
	  MaskHelp		  "Specify the initial output for the zero-pol"
"e-gain system.  An optimization routine attempts to determine the appropriate"
" initial states so that the specified initial output is achieved.  For more d"
"etails, see the m-file getxo.m"
	  MaskPromptString	  "Zeros:|Poles:|Gain:|Initial input:|Initial "
"output:|Sample time:"
	  MaskStyleString	  "edit,edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on,on"
	  MaskCallbackString	  "|||||"
	  MaskEnableString	  "on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on,on"
	  MaskVarAliasString	  ",,,,,"
	  MaskVariables		  "Z=@1;P=@2;K=@3;U0=@4;Y0=@5;TS=@6;"
	  MaskInitialization	  "[A,B,C,D]=zp2ss(Z,P,K);if (isempty(Y0));[m,"
"n]=size(A);X0=zeros(1,m); end;if (isempty(U0));[m,p]=size(B);U0=zeros(1,p);en"
"d;X0=getxo(A,B,C,D,U0,Y0,1);"
	  MaskDisplay		  "droots(Z,P,K,'z')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1]|[0  .5]|[1]|1|.5|1"
	  MaskTabNameString	  ",,,,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Discrete\nZero-Pole\n(with initial output"
"s)"
	    Location		    [644, 85, 916, 192]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      DiscreteStateSpace
	      Name		      "Discrete\nState Space"
	      Position		      [80, 26, 195, 64]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "D"
	      X0		      "X0"
	      SampleTime	      "TS"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [220, 38, 250, 52]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Discrete\nState Space"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Discrete\nState Space"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Discrete\nZero-Pole\n(with initial states)"
	  Ports			  [1, 1]
	  Position		  [25, 97, 85, 133]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Discrete Zero-Pole with Initial States"
	  MaskDescription	  "Vector expressions for numerator, denominat"
"or, and gain."
	  MaskHelp		  "Specify the initial states for the transfer"
" function.  The state ordering is determined by the m-file zp2ss.  There is n"
"o unique mapping of the states in a zero-pole-gain representation to states i"
"n a state-space representation.  However, zp2ss will consistently use the sam"
"e mapping for a given transfer function.\n"
	  MaskPromptString	  "Zeros:|Poles:|Gain:|Initial conditions:|Sam"
"ple time:"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "Z=@1;P=@2;K=@3;X0=@4;TS=@5;"
	  MaskInitialization	  "[A,B,C,D]=zp2ss(Z,P,K);if (isempty(X0));[m,"
"n]=size(A);X0=zeros(1,m); end;"
	  MaskDisplay		  "droots(Z,P,K,'z')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1]|[0  .5]|[1]|1|.5"
	  MaskTabNameString	  ",,,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Discrete\nZero-Pole\n(with initial states"
")"
	    Location		    [784, 55, 1072, 167]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      DiscreteStateSpace
	      Name		      "Discrete\nState Space"
	      Position		      [80, 27, 195, 63]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "D"
	      X0		      "X0"
	      SampleTime	      "TS"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [225, 38, 255, 52]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Discrete\nState Space"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Discrete\nState Space"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Idealized ADC quantizer"
	  Ports			  [1, 1]
	  Position		  [80, 200, 140, 250]
	  AttributesFormatString  "(settings: %<NumberOfConverterBits>-bit con"
"verter\\nVmin: %<Vmin>, Vmax: %<Vmax>)"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "IdealADC"
	  MaskDescription	  "Idealized quantizer for a linear analog to "
"digital converter.  There are 2^n possible digital output codes for an n-bit "
"converter.   Each value represents an equal fraction of the total analog inpu"
"t range in steps of one least significant bit (1 LSB).  1 LSB is (Vmax - Vmin"
")/2^bits.  The midpoint of these steps corresponds to the actual value and th"
"us introduce quantization error that is never more than 1/2 LSB within the fu"
"ll scale range (FSR). Since the first and last steps in the converter's range"
" are only 1/2 LSB in width, the full scale range of the converter is equal to"
" (2^n - 1) step widths.  The FSR low transition occurs at Vmin + 1/2 LSB, the"
" FSR high transition occurs at Vmax - 3/2 LSB.  Conversion time is zero in th"
"is model.  Set \"Output negative values\" to ON if you want negative outputs "
"for negative voltages (does not apply to unsigned output data types)."
	  MaskHelp		  "Use this block to model an ideal analog to "
"digital converter.  To model non-ideal converters, it is suggested to use a d"
"irect look-up table to represent static errors and dynamic models for transie"
"nt error sources.  Use a discrete delay of the appropriate duration to model "
"conversion latency if this is a significant value in your application.  If th"
"ere is an input mux, model this with triggered latencies on the input side of"
" the A/D block."
	  MaskPromptString	  "Number of converter bits:|Min input voltage"
" at low output:|Max input voltage at 2^n output (unreachable):|Output data ty"
"pe:|Output negative values"
	  MaskStyleString	  "edit,edit,edit,popup(double|single|int8|uin"
"t8|int16|uint16|int32|uint32|boolean),checkbox"
	  MaskTunableValueString  "off,off,off,off,off"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "NumberOfConverterBits=@1;Vmin=@2;Vmax=@3;Ou"
"tputDataType=&4;OutputNegativeValues=@5;"
	  MaskInitialization	  "blk = gcb;\nset_param([blk,'/cast'], 'DataT"
"ype', OutputDataType);\n\nLSB    = (Vmax - Vmin) / pow2(NumberOfConverterBits"
");\ninvLSB =  pow2(NumberOfConverterBits) / (Vmax - Vmin);\n\nif OutputNegati"
"veValues ~= 0 && OutputDataType(1) ~= 'u'\n    ZeroBias = -pow2(NumberOfConve"
"rterBits-1);\nelse\n	ZeroBias = 0;\nend\n\n% --- icon drawing data\n\n"
"b = 0.10;\nm = 0.20;\nsteps_x = b + m*[0,0.5,0.5,1.5,1.5,2.5,2.5,3.5,4];\nste"
"ps_y = b + m*[0,0,1,1,2,2,3,3,3];\nline_xy = b + m*[0,4];"
	  MaskDisplay		  "plot(steps_x,steps_y)\nplot(line_xy, line_x"
"y)\nport_label('input',1,'A')\nport_label('output',1,'D')\ntext(0.5,0.9,[num2"
"str(NumberOfConverterBits),' bits'],'horizontalalignment','center')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "port"
	  MaskIconUnits		  "normalized"
	  MaskValueString	  "12|0|5|int16|off"
	  MaskTabNameString	  ",,,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Idealized ADC quantizer"
	    Location		    [118, 381, 784, 867]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Sampled\nVolts"
	      Position		      [45, 68, 75, 82]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Bias
	      Name		      "Bias"
	      Position		      [240, 60, 320, 90]
	      Bias		      "-Vmin"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [375, 52, 440, 98]
	      Gain		      "invLSB"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "Saturate volts \nto output range"
	      Position		      [150, 60, 180, 90]
	      AttributesFormatString  "Max = %<UpperLimit>\\nMin = %<LowerLimi"
"t>"
	      UpperLimit	      "Vmax - (LSB*3/2)"
	      LowerLimit	      "Vmin"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Bias
	      Name		      "SetRound"
	      Position		      [150, 215, 205, 245]
	      Bias		      "0.5"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Bias
	      Name		      "ZeroBias"
	      Position		      [460, 215, 540, 245]
	      Bias		      "ZeroBias"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      DataTypeConversion
	      Name		      "cast"
	      Position		      [365, 216, 410, 244]
	      OutDataTypeMode	      "int16"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Rounding
	      Name		      "floor"
	      Position		      [265, 215, 305, 245]
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Digital\nCounts"
	      Position		      [590, 223, 620, 237]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Sampled\nVolts"
	      SrcPort		      1
	      DstBlock		      "Saturate volts \nto output range"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "cast"
	      SrcPort		      1
	      DstBlock		      "ZeroBias"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "SetRound"
	      SrcPort		      1
	      DstBlock		      "floor"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "floor"
	      SrcPort		      1
	      DstBlock		      "cast"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Saturate volts \nto output range"
	      SrcPort		      1
	      DstBlock		      "Bias"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      Points		      [35, 0; 0, 95; -380, 0; 0, 60]
	      DstBlock		      "SetRound"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bias"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "ZeroBias"
	      SrcPort		      1
	      DstBlock		      "Digital\nCounts"
	      DstPort		      1
	    }
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Additional\nLinear"
      Ports		      []
      Position		      [153, 22, 203, 72]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      PropExecContextAcrossSSBoundary on
      RTWSystemCode	      "Auto"
      MaskDisplay	      "plot([-20 20],[-15 -15],[-15 -15],[-20 20],[-20"
" 20],[-5 18])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Additional\nLinear"
	Location		[174, 232, 421, 583]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "PID Controller"
	  Ports			  [1, 1]
	  Position		  [145, 160, 175, 190]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "PID Controller"
	  MaskDescription	  "Enter expressions for proportional, integra"
"l, and derivative terms.\nP+I/s+Ds"
	  MaskHelp		  "This block implements a PID controller wher"
"e parameters are entered for the Proportional, Integral and Derivative terms."
" Unmask this block to see how it works. The derivative term is implemented us"
"ing a true derivative block."
	  MaskPromptString	  "Proportional:|Integral:|Derivative:"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "P=@1;I=@2;D=@3;"
	  MaskDisplay		  "disp('PID')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "1|1|0"
	  MaskTabNameString	  ",,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "PID Controller"
	    Location		    [290, 337, 652, 557]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In_1"
	      Position		      [25, 65, 45, 85]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "D"
	      Position		      [95, 129, 115, 151]
	      Gain		      "D"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Derivative
	      Name		      "Derivative"
	      Position		      [150, 128, 190, 152]
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      TransferFcn
	      Name		      "Integral"
	      Position		      [110, 57, 145, 93]
	      Numerator		      "[I]"
	      Denominator	      "[1 0]"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Proportional"
	      Position		      [120, 13, 140, 37]
	      Gain		      "P"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [3, 1]
	      Position		      [245, 57, 265, 93]
	      Inputs		      "+++"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		3
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out_1"
	      Position		      [290, 65, 310, 85]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "D"
	      SrcPort		      1
	      DstBlock		      "Derivative"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Out_1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In_1"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		Points			[0, 65]
		DstBlock		"D"
		DstPort			1
	      }
	      Branch {
		Points			[0, 0]
		Branch {
		  Points		  [0, -50]
		  DstBlock		  "Proportional"
		  DstPort		  1
		}
		Branch {
		  DstBlock		  "Integral"
		  DstPort		  1
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Derivative"
	      SrcPort		      1
	      Points		      [20, 0; 0, -55]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Integral"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Proportional"
	      SrcPort		      1
	      Points		      [65, 0; 0, 40]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "PID Controller\n(with Approximate\nDerivati"
"ve)"
	  Ports			  [1, 1]
	  Position		  [35, 240, 65, 270]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "PID(2) Controller"
	  MaskDescription	  "Enter Proportional(P), Integral(I), and Der"
"ivative(D) and divisor (N) terms.\nP+I/s+Ds/(1/Ns+1)"
	  MaskHelp		  "This block implements a PID controller wher"
"e parameters are entered for the Proportional, Integral and Derivative and di"
"visor terms. Unmask this block to see how it works. The derivative term is im"
"plemented using an s/(s/N +1)  transfer function block. Making N large can cr"
"eate a \"stiff\" system."
	  MaskPromptString	  "Proportional:|Integral:|Derivative:|Derivat"
"ive divisor(N):"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "P=@1;I=@2;D=@3;N=@4;"
	  MaskDisplay		  "disp('PID')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "1|1|0|100"
	  MaskTabNameString	  ",,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "PID Controller\n(with Approximate\nDeriva"
"tive)"
	    Location		    [70, 117, 395, 334]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In_1"
	      Position		      [25, 65, 45, 85]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      TransferFcn
	      Name		      "Derivative"
	      Position		      [110, 120, 160, 160]
	      Numerator		      "[D, 0]"
	      Denominator	      "[1/N 1]"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      TransferFcn
	      Name		      "Integral"
	      Position		      [110, 57, 145, 93]
	      Numerator		      "[I]"
	      Denominator	      "[1 0]"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Proportional"
	      Position		      [120, 13, 140, 37]
	      Gain		      "P"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [3, 1]
	      Position		      [245, 57, 265, 93]
	      Inputs		      "+++"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		3
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out_1"
	      Position		      [290, 65, 310, 85]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Proportional"
	      SrcPort		      1
	      Points		      [65, 0; 0, 40]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Integral"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Derivative"
	      SrcPort		      1
	      Points		      [50, 0; 0, -55]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "In_1"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		Points			[0, 0]
		Branch {
		  Points		  [0, -50]
		  DstBlock		  "Proportional"
		  DstPort		  1
		}
		Branch {
		  DstBlock		  "Integral"
		  DstPort		  1
		}
	      }
	      Branch {
		Points			[0, 65]
		DstBlock		"Derivative"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Out_1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "State-Space\n(with initial outputs)"
	  Ports			  [1, 1]
	  Position		  [20, 162, 80, 198]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "State-Space with Initial Outputs"
	  MaskDescription	  "State-Space model matrices:\ndx/dt = Ax + B"
"u\ny=Cx +Du"
	  MaskHelp		  "Specify an initial output.  An optimization"
" routine is used to attempt to find the steady state x values that satisfy th"
"e initial output.  The block states will be initialized to these values."
	  MaskPromptString	  "A:|B:|C:|D:|Initial inputs:|Initial outputs"
":"
	  MaskStyleString	  "edit,edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on,on"
	  MaskCallbackString	  "|||||"
	  MaskEnableString	  "on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on,on"
	  MaskVarAliasString	  ",,,,,"
	  MaskVariables		  "A=@1;B=@2;C=@3;D=@4;U0=@5;Y0=@6;"
	  MaskInitialization	  "if (isempty(Y0));[m,n]=size(A);X0=zeros(1,m"
"); end; if (isempty(U0));[m,p]=size(B);U0=zeros(1,p);end;X0=getxo(A,B,C,D,U0,"
"Y0,0);"
	  MaskDisplay		  "fprintf('x'' = Ax + Bu\\n  y = Cx + Du');"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[-2.0479 -.4517;-.4517 -3.0295]|[.0591 0]'|"
"[.2641 .8717]|0|1|.5"
	  MaskTabNameString	  ",,,,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "State-Space\n(with initial outputs)"
	    Location		    [674, 104, 894, 192]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "State-Space"
	      Position		      [80, 27, 140, 63]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "D"
	      X0		      "X0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [165, 38, 195, 52]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "State-Space"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "State-Space"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Transfer Fcn\n(with initial outputs)"
	  Ports			  [1, 1]
	  Position		  [130, 12, 190, 48]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Transfer Function with Initial Outputs"
	  MaskDescription	  "Vector expressions for numerator, and denom"
"inator. Coefficients are in descending powers of s."
	  MaskHelp		  "Specify the initial output for the transfer"
" function.  An optimization routine attempts to determine the appropriate ini"
"tial states so that the specified initial output is achieved.  For more detai"
"ls, see the m-file getxo.m"
	  MaskPromptString	  "Numerator:|Denominator:|Initial output:|Ini"
"tial input:"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "N=@1;D=@2;Y0=@3;U0=@4;"
	  MaskInitialization	  "[A,B,C,Dd]=tf2ss(N,D);if (isempty(Y0));[m,n"
"]=size(A);X0=zeros(1,m); end; if (isempty(U0));[m,p]=size(B);U0=zeros(1,p);en"
"d;X0=getxo(A,B,C,Dd,U0,Y0,0);\n"
	  MaskDisplay		  "dpoly(N,D,'s')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1]|[1  1]|.5|0"
	  MaskTabNameString	  ",,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Transfer Fcn\n(with initial outputs)"
	    Location		    [664, 99, 884, 187]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "State Space"
	      Position		      [80, 27, 140, 63]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "Dd"
	      X0		      "X0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [165, 38, 195, 52]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "State Space"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "State Space"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Transfer Fcn\n(with initial states)"
	  Ports			  [1, 1]
	  Position		  [20, 12, 80, 48]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Transfer Function with Initial States"
	  MaskDescription	  "Vector expressions for numerator, and denom"
"inator. Coefficients are in descending powers of s."
	  MaskHelp		  "Specify the initial states for the transfer"
" function.  The state ordering is determined by the m-file tf2ss.  There is n"
"o unique mapping of the states in a transfer function to states in a state-sp"
"ace representation.  However, tf2ss will consistently use the same mapping fo"
"r a given transfer function.\n"
	  MaskPromptString	  "Numerator:|Denominator:|Initial conditions:"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "N=@1;D=@2;X0=@3;"
	  MaskInitialization	  "[A,B,C,Dd]=tf2ss(N,D);if (isempty(X0));[m,n"
"]=size(A);X0=zeros(1,m); end;"
	  MaskDisplay		  "dpoly(N,D,'s')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1]|[1  1]|.5"
	  MaskTabNameString	  ",,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Transfer Fcn\n(with initial states)"
	    Location		    [614, 74, 834, 162]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "State Space"
	      Position		      [80, 27, 140, 63]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "Dd"
	      X0		      "X0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [165, 38, 195, 52]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [5, 10]
	      DstBlock		      "State Space"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "State Space"
	      SrcPort		      1
	      Points		      [5, 10]
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Zero-Pole\n(with initial outputs)"
	  Ports			  [1, 1]
	  Position		  [130, 87, 190, 123]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Zero-Pole with Initial Outputs"
	  MaskDescription	  "Vector expressions for numerator, denominat"
"or, and gain."
	  MaskHelp		  "Specify the initial output for the zero-pol"
"e-gain system.  An optimization routine attempts to determine the appropriate"
" initial states so that the specified initial output is achieved.  For more d"
"etails, see the m-file getxo.m"
	  MaskPromptString	  "Zeros:|Poles:|Gain:|Initial output:|Initial"
" input:"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "Z=@1;P=@2;K=@3;Y0=@4;U0=@5;"
	  MaskInitialization	  "[A,B,C,D]=zp2ss(Z,P,K);if (isempty(Y0));[m,"
"n]=size(A);X0=zeros(1,m); end; if (isempty(U0));[m,p]=size(B);U0=zeros(1,p);e"
"nd;X0=getxo(A,B,C,D,U0,Y0,0);"
	  MaskDisplay		  "droots(Z,P,K)"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1]|[0; -1]|[1]|.5|0"
	  MaskTabNameString	  ",,,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Zero-Pole\n(with initial outputs)"
	    Location		    [679, 84, 899, 172]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "State Space"
	      Position		      [80, 27, 140, 63]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "D"
	      X0		      "X0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [165, 38, 195, 52]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "State Space"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "State Space"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Zero-Pole\n(with initial states)"
	  Ports			  [1, 1]
	  Position		  [20, 87, 80, 123]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Zero-Pole with Initial States"
	  MaskDescription	  "Vector expressions for numerator, denominat"
"or, and gain."
	  MaskHelp		  "Specify the initial states for the transfer"
" function.  The state ordering is determined by the m-file zp2ss.  There is n"
"o unique mapping of the states in a zero-pole-gain representation to states i"
"n a state-space representation.  However, zp2ss will consistently use the sam"
"e mapping for a given transfer function."
	  MaskPromptString	  "Zeros:|Poles:|Gain:|Initial conditions:"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "Z=@1;P=@2;K=@3;X0=@4;"
	  MaskInitialization	  "[A,B,C,D]=zp2ss(Z,P,K);if (isempty(X0));[m,"
"n]=size(A);X0=zeros(1,m); end;"
	  MaskDisplay		  "droots(Z,P,K)"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1]|[0; -1]|[1]|.5"
	  MaskTabNameString	  ",,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Zero-Pole\n(with initial states)"
	    Location		    [684, 114, 904, 202]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      StateSpace
	      Name		      "State Space"
	      Position		      [80, 27, 140, 63]
	      A			      "A"
	      B			      "B"
	      C			      "C"
	      D			      "D"
	      X0		      "X0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [165, 38, 195, 52]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "State Space"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "State Space"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Additional\nSinks"
      Ports		      []
      Position		      [22, 22, 72, 72]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      PropExecContextAcrossSSBoundary on
      RTWSystemCode	      "Auto"
      MaskDisplay	      "plot([-1 1 1 -1 1],[ 1 -1 1 -1 1],[14 4 11 4 6]"
",[14 4 6 4 11],[14 4 11 4 6],[-14 -4 -6 -4 -11],[-14 -4 -11 -4 -6],[14 4 6 4 "
"11],[-14 -4 -11 -4 -6],[-14 -4 -6 -4 -11],\n[0 0 3 0 -3],[-20 -5 -10 -5 -10],"
"[0 0 3 0 -3],[20 5 10 5 10],[20 5 10 5 10],[0 0 3 0 -3],[-20 -5 -10 -5 -10],["
"0 0 3 0 -3])                                            "
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Additional\nSinks"
	Location		[39, 212, 217, 516]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "Auto\nCorrelator"
	  Ports			  [1]
	  Position		  [115, 170, 145, 200]
	  CopyFcn		  "sfuncorr([],[],[],'CopyBlock')"
	  DeleteFcn		  "sfuncorr([],[],[],'DeleteBlock')"
	  LoadFcn		  "sfuncorr([],[],[],'LoadBlock')"
	  StartFcn		  "sfuncorr([],[],[],'Start')"
	  NameChangeFcn		  "sfuncorr([],[],[],'NameChange')"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Auto Correlator"
	  MaskDescription	  "Plots the auto correlation of the input.\nR"
"equires signal processing toolbox."
	  MaskHelp		  "This block when hooked to the output of a s"
"ystem displays the auto correlation of the buffer in the graph window. For mo"
"re see the M-file sfuncorr."
	  MaskPromptString	  "Length of buffer:|Plot after how many point"
"s:|Sample time:"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "npts=@1;HowOften=@2;sampleT=@3;"
	  MaskInitialization	  " ts=sampleT(1); if length(sampleT) > 1, off"
"set = sampleT(2);, else, offset = 0; end"
	  MaskDisplay		  "plot(0,0,100,100,[11,93,93,11,11],[90,90,40"
",40,90],[80,60,40,20],[50,79,50,80])"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "100|50|0.1"
	  MaskTabNameString	  ",,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Auto\nCorrelator"
	    Location		    [92, 139, 430, 257]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "input signal"
	      Position		      [50, 55, 70, 75]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "sfuncorr"
	      Ports		      [1, 1]
	      Position		      [160, 48, 225, 82]
	      FunctionName	      "sfuncorr"
	      Parameters	      "npts,HowOften,offset,ts,0,'unbiased'"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "input signal"
	      SrcPort		      1
	      DstBlock		      "sfuncorr"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Averaging\nPower Spectral\nDensity"
	  Ports			  [1]
	  Position		  [115, 15, 145, 45]
	  CopyFcn		  "sfunpsd([],[],[],'CopyBlock')"
	  DeleteFcn		  "sfunpsd([],[],[],'DeleteBlock')"
	  LoadFcn		  "sfunpsd([],[],[],'LoadBlock')"
	  StartFcn		  "sfunpsd([],[],[],'Start')"
	  NameChangeFcn		  "sfunpsd([],[],[],'NameChange')"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Averaging Power Spectral Density"
	  MaskDescription	  "Plots the averaged PSD of the input."
	  MaskHelp		  "This block when hooked to the output of a s"
"ystem displays the frequency content of the buffer in the graph window. For m"
"ore see the M-file sfunpsd."
	  MaskPromptString	  "Length of buffer:|Number of points for fft:"
"|Plot after how many points:|Sample time:"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "npts=@1;fftpts=@2;HowOften=@3;sampleT=@4;"
	  MaskInitialization	  " ts=sampleT(1); if length(sampleT) > 1, off"
"set = sampleT(2);, else, offset = 0; end"
	  MaskDisplay		  "plot(0,0,100,100,[11,92,92,11,11],[90,90,40"
",40,90],[82,76,65,57,51,44,35,30,25,20],[65,62,59,63,66,66,67,70,55,50])"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "128|512|64|0.1"
	  MaskTabNameString	  ",,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Averaging\nPower Spectral\nDensity"
	    Location		    [268, 315, 569, 439]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "input signal"
	      Position		      [45, 45, 65, 65]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "sfunpsd"
	      Ports		      [1, 1]
	      Position		      [130, 36, 180, 74]
	      FunctionName	      "sfunpsd"
	      Parameters	      "fftpts,npts,HowOften,offset,ts,1"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "input signal"
	      SrcPort		      1
	      DstBlock		      "sfunpsd"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Averaging\nSpectrum\nAnalyzer"
	  Ports			  [2]
	  Position		  [115, 92, 145, 123]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Averaging Spectrum Analyzer"
	  MaskDescription	  "Implements an Averaging Spectrum analyzer."
"\nHook input 1 to system input.\nHook input 2 to system output."
	  MaskHelp		  "Hook the system's input to the first port o"
"f this block and the system's output to second port. Results are displayed as"
" the frequency response of this system. Use signals with high harmonic conten"
"t for best results. "
	  MaskPromptString	  "Length of buffer:|Number of points for fft:"
"|Plot after how many points:|Sample time:"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "npts=@1;fftpts=@2;HowOften=@3;sampleT=@4;"
	  MaskInitialization	  " ts=sampleT(1); if length(sampleT) > 1, off"
"set = sampleT(2);, else, offset = 0; end"
	  MaskDisplay		  "plot(0,0,100,100,[12,92,92,12,12],[90,90,40"
",40,90],[80,72,63,54,47,40,32,20],[61,61,62,65,69,73,75,75])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "256|256|64|0.1"
	  MaskTabNameString	  ",,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Averaging\nSpectrum\nAnalyzer"
	    Location		    [180, 227, 525, 410]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "system input"
	      Position		      [35, 35, 55, 55]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "system output"
	      Position		      [35, 115, 55, 135]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [125, 76, 155, 109]
	      Inputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "sfuntf"
	      Ports		      [1, 1]
	      Position		      [200, 77, 245, 113]
	      FunctionName	      "sfuntf"
	      Parameters	      "fftpts,npts,HowOften,offset,ts,1"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "sfuntf"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "system input"
	      SrcPort		      1
	      Points		      [30, 0; 0, 40]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "system output"
	      SrcPort		      1
	      Points		      [30, 0; 0, -25]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Cross\nCorrelator"
	  Ports			  [2]
	  Position		  [30, 167, 60, 198]
	  CopyFcn		  "sfuncorr([],[],[],'CopyBlock')"
	  DeleteFcn		  "sfuncorr([],[],[],'DeleteBlock')"
	  LoadFcn		  "sfuncorr([],[],[],'LoadBlock')"
	  StartFcn		  "sfuncorr([],[],[],'Start')"
	  NameChangeFcn		  "sfuncorr([],[],[],'NameChange')"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Cross Correlator"
	  MaskDescription	  "Plots the cross correlation of the input si"
"gnals.\nRequires signal processing toolbox."
	  MaskHelp		  "This block when hooked to the outputs of a "
"system displays the cross correlation of the buffer in the graph window. For "
"more see the M-file sfuncorr."
	  MaskPromptString	  "Length of buffer:|Plot after how many point"
"s:|Sample time:"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "npts=@1;HowOften=@2;sampleT=@3;"
	  MaskInitialization	  " ts=sampleT(1); if length(sampleT) > 1, off"
"set = sampleT(2);, else, offset = 0; end"
	  MaskDisplay		  "plot(0,0,100,100,[10,92,92,10,10],[90,90,40"
",40,90],[80,59,40,20],[70,79,70,79],[79,70,59,51,40,30,21],[60,51,60,50,60,50"
",60])"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "100|50|0.1"
	  MaskTabNameString	  ",,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Cross\nCorrelator"
	    Location		    [48, 95, 445, 294]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "signal 1"
	      Position		      [50, 55, 70, 75]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "signal 2"
	      Position		      [50, 105, 70, 125]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [150, 81, 180, 114]
	      Inputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "sfuncorr"
	      Ports		      [1, 1]
	      Position		      [225, 83, 290, 117]
	      FunctionName	      "sfuncorr"
	      Parameters	      "npts,HowOften,offset,ts,1,'unbiased'"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "signal 1"
	      SrcPort		      1
	      Points		      [25, 0; 0, 25]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "signal 2"
	      SrcPort		      1
	      Points		      [25, 0; 0, -10]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "sfuncorr"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "Floating Bar Plot"
	  Ports			  []
	  Position		  [30, 239, 58, 269]
	  DeleteFcn		  "barplotm([],'DeleteFcn')"
	  NameChangeFcn		  "barplotm([],'NameChangeFcn')"
	  FunctionName		  "barplot"
	  Parameters		  "yLim"
	  MaskType		  "Floating Bar Plot"
	  MaskDescription	  "Displays selected signals as bar plot while"
" the simulation is running (i.e., click on signal lines to see their values d"
"isplayed).  To select multiple signals use shift-click.  Each signal is displ"
"ayed in its own axes, using the corresponding set of Y-Limits."
	  MaskHelp		  "Displays selected signal values (click on s"
"ignal) as bar plot while the simulation is running.  To select multiple signa"
"ls use shift-click.  Each signal (selected line) is displayed in it's own axe"
"s.  The 1stY-Limits pair is used for the 1st axes, the 2nd for the 2nd axes, "
"etc.   If there are more axes, than Y-Limits pairs, the last Y-Limits pair is"
" used."
	  MaskPromptString	  "Y-Limits"
	  MaskStyleString	  "edit"
	  MaskTunableValueString  "on"
	  MaskEnableString	  "on"
	  MaskVisibilityString	  "on"
	  MaskToolTipString	  "on"
	  MaskVariables		  "yLim=@1;"
	  MaskInitialization	  "x=[0.1 0.1 0.2 0.2 0.3 0.3 0.4 0.4 0.5 0.5 "
"0.6 0.6 0.7 0.7 0.8 0.8 0.1];\ny=[0.0 0.6 0.6 0.0 0.0 0.8 0.8 0.0 0.0 0.9 0.9"
" 0.0 0.0 0.4 0.4 0.0 0.0];\n"
	  MaskDisplay		  "plot(x,y);"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "normalized"
	  MaskValueString	  "[-6 6  -5 5  -5 5  -5 5  -5 5  -5 5  -5 5  "
"-5 5  -5 5  -5 5  -5 5]"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Power Spectral\nDensity"
	  Ports			  [1]
	  Position		  [30, 15, 60, 45]
	  CopyFcn		  "sfunpsd([],[],[],'CopyBlock')"
	  DeleteFcn		  "sfunpsd([],[],[],'DeleteBlock')"
	  LoadFcn		  "sfunpsd([],[],[],'LoadBlock')"
	  StartFcn		  "sfunpsd([],[],[],'Start')"
	  NameChangeFcn		  "sfunpsd([],[],[],'NameChange')"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Power Spectral Density"
	  MaskDescription	  "Plot the PSD of the input."
	  MaskHelp		  "This block when hooked to the output of a s"
"ystem displays the frequency content of the buffer in the graph window. For m"
"ore see the M-file sfunpsd."
	  MaskPromptString	  "Length of buffer:|Number of points for fft:"
"|Plot after how many points:|Sample time:"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "npts=@1;fftpts=@2;HowOften=@3;sampleT=@4;"
	  MaskInitialization	  " ts=sampleT(1); if length(sampleT) > 1, off"
"set = sampleT(2);, else, offset = 0; end"
	  MaskDisplay		  "plot(0,0,100,100,[14,91,91,14,14],[86,86,40"
",40,86],[85,82,80,79,75,67,63,60,57,53,41,36,33,27,24],[49,50,53,50,49,51,54,"
"66,54,50,50,52,81,51,49])"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "128|512|64|0.1"
	  MaskTabNameString	  ",,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Power Spectral\nDensity"
	    Location		    [136, 183, 454, 323]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "input signal"
	      Position		      [50, 55, 70, 75]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "sfunpsd"
	      Ports		      [1, 1]
	      Position		      [160, 46, 210, 84]
	      FunctionName	      "sfunpsd"
	      Parameters	      "fftpts,npts,HowOften,offset,ts,0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "input signal"
	      SrcPort		      1
	      DstBlock		      "sfunpsd"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Spectrum\nAnalyzer"
	  Ports			  [2]
	  Position		  [30, 92, 60, 123]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Spectrum Analyzer"
	  MaskDescription	  "Implements a Spectrum Analyzer.\nHook input"
" 1 to system input.\nHook input 2 to system output."
	  MaskHelp		  "Hook the system's input to the first port o"
"f this block and the system's output to second port. Results are displayed as"
" the frequency response of this system. Use signals with high harmonic conten"
"t for best results. "
	  MaskPromptString	  "Length of buffer:|Number of points for fft:"
"|Plot after how many points:|Sample time:"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "npts=@1;fftpts=@2;HowOften=@3;sampleT=@4;"
	  MaskInitialization	  " ts=sampleT(1); if length(sampleT) > 1, off"
"set = sampleT(2);, else, offset = 0; end"
	  MaskDisplay		  "plot(0,0,100,100,[11,93,93,11,11],[90,90,40"
",40,90],[90,80,72,64,55,45,41,36,20],[50,50,52,59,67,75,78,80,80])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "256|256|64|0.1"
	  MaskTabNameString	  ",,,"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Spectrum\nAnalyzer"
	    Location		    [224, 271, 595, 456]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "system input"
	      Position		      [55, 30, 75, 50]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "system output"
	      Position		      [55, 110, 75, 130]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [145, 71, 175, 104]
	      Inputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "sfuntf"
	      Ports		      [1, 1]
	      Position		      [225, 72, 270, 108]
	      FunctionName	      "sfuntf"
	      Parameters	      "fftpts,npts,HowOften,offset,ts,0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "system output"
	      SrcPort		      1
	      Points		      [30, 0; 0, -25]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "system input"
	      SrcPort		      1
	      Points		      [30, 0; 0, 40]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "sfuntf"
	      DstPort		      1
	    }
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Flip Flops"
      Ports		      []
      Position		      [284, 22, 334, 72]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      PropExecContextAcrossSSBoundary on
      RTWSystemCode	      "Auto"
      System {
	Name			"Flip Flops"
	Location		[305, 232, 685, 395]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "Clock"
	  Ports			  [0, 1]
	  Position		  [15, 41, 55, 69]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Digital clock"
	  MaskDescription	  "Digital clock.\nOutput is set to 1 for the "
"first half of the period."
	  MaskHelp		  "Digital clock for logic systems."
	  MaskPromptString	  "Period:"
	  MaskStyleString	  "edit"
	  MaskTunableValueString  "on"
	  MaskEnableString	  "on"
	  MaskVisibilityString	  "on"
	  MaskToolTipString	  "on"
	  MaskInitialization	  "duration = @1/2;"
	  MaskDisplay		  "plot(0,0,100,100,[90,75,75,60,60,35,35,20,2"
"0,10],[20,20,80,80,19,20,80,80,20,20])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "2"
	  System {
	    Name		    "Clock"
	    Location		    [471, 305, 755, 434]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [25, 25, 45, 45]
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [115, 30, 135, 50]
	      Inputs		      "+-"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [125, 80, 175, 100]
	      Orientation	      "left"
	      SampleTime	      "duration"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_1"
	      Position		      [240, 30, 260, 50]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [-35, 0; 0, -45]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [70, 0]
	      Branch {
		DstBlock		"out_1"
		DstPort			1
	      }
	      Branch {
		Points			[0, 50]
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "D Flip-Flop"
	  Ports			  [3, 2]
	  Position		  [230, 17, 275, 93]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "DFlipFlop"
	  MaskDescription	  "D Flip-Flop Block"
	  MaskHelp		  "The D flip-flop block has the following cha"
"racteristic table:\n<pre>\n  Q(t)  D(t)     Q(tnext)\n  ---------------------"
"---\n   0      0       0\n   0      1       1\n   1      0       0\n   1     "
" 1       1\n</pre>\nQ(tnext) refers to the output on a clock pulse (CLK) risi"
"ng edge and when the\nchip is enabled (!CLR ~= 0).\n<br><br>\nThe D flip-flop"
" transfers \"data\" into a memory element (flip-flop) on each clock\npulse (C"
"LK). The chip enable input signal, !CLR, is sometimes given the\ndesignation "
"G (for gate) to indicate that this input enables the gated latch\nallowing da"
"ta entry into the flip-flop.\n"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    3
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "D Flip-Flop"
	    Location		    [234, 756, 467, 927]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "D"
	      Position		      [35, 98, 65, 112]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "CLK"
	      Position		      [115, 30, 145, 45]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "!CLR"
	      Position		      [74, 30, 106, 45]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "D Flip-Flop"
	      Ports		      [1, 2, 1, 1]
	      Position		      [90, 65, 130, 140]
	      TreatAsAtomicUnit	      on
	      MinAlgLoopOccurrences   off
	      PropExecContextAcrossSSBoundary on
	      RTWSystemCode	      "Auto"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		3
		ShowSigGenPortName	on
	      }
	      System {
		Name			"D Flip-Flop"
		Location		[787, 463, 1058, 610]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "D"
		  Position		  [10, 55, 45, 75]
		  IconDisplay		  "Port number"
		  LatchInput		  on
		}
		Block {
		  BlockType		  EnablePort
		  Name			  "C"
		  Ports			  []
		  Position		  [15, 15, 35, 35]
		}
		Block {
		  BlockType		  TriggerPort
		  Name			  "Trigger"
		  Ports			  []
		  Position		  [55, 15, 75, 35]
		  StatesWhenEnabling	  "reset"
		}
		Block {
		  BlockType		  Logic
		  Name			  "Logic"
		  Ports			  [1, 1]
		  Position		  [135, 93, 165, 117]
		  Operator		  "NOT"
		  Inputs		  "1"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Q"
		  Position		  [205, 55, 225, 75]
		  IconDisplay		  "Port number"
		  OutputWhenDisabled	  "reset"
		  InitialOutput		  "0"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "!Q"
		  Position		  [205, 95, 225, 115]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  OutputWhenDisabled	  "reset"
		  InitialOutput		  "1"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Line {
		  SrcBlock		  "Logic"
		  SrcPort		  1
		  DstBlock		  "!Q"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "D"
		  SrcPort		  1
		  Points		  [45, 0]
		  Branch {
		    DstBlock		    "Q"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 40]
		    DstBlock		    "Logic"
		    DstPort		    1
		  }
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q"
	      Position		      [155, 78, 185, 92]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "!Q"
	      Position		      [155, 113, 185, 127]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      InitialOutput	      "1"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "CLK"
	      SrcPort		      1
	      DstBlock		      "D Flip-Flop"
	      DstPort		      trigger
	    }
	    Line {
	      SrcBlock		      "!CLR"
	      SrcPort		      1
	      DstBlock		      "D Flip-Flop"
	      DstPort		      enable
	    }
	    Line {
	      SrcBlock		      "D Flip-Flop"
	      SrcPort		      1
	      DstBlock		      "Q"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "D"
	      SrcPort		      1
	      DstBlock		      "D Flip-Flop"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "D Flip-Flop"
	      SrcPort		      2
	      DstBlock		      "!Q"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "D Latch"
	  Ports			  [2, 2]
	  Position		  [80, 15, 125, 90]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "DLatch"
	  MaskDescription	  "D Latch Flip-Flop Block"
	  MaskHelp		  "The D latch flip-flop block has the followi"
"ng characteristic table:\n<pre>\n  Q(t)  D(t)     Q(tnext)\n  ---------------"
"---------\n   0      0       0\n   0      1       1\n   1      0       0\n   "
"1      1       1\n</pre>\nThe D latch transfers \"data\" into a memory elemen"
"t (flip-flop).  The D latch\nflip-flop is sometimes called a gated D-latch. T"
"he chip enable input signal, C,\nis sometimes given the designation G (for ga"
"te) to indicate that this input\nenables the gated latch allowing data entry "
"into the flip-flop.\n"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "D Latch"
	    Location		    [286, 544, 500, 719]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "D"
	      Position		      [25, 83, 55, 97]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "C"
	      Position		      [80, 15, 110, 30]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "D Latch"
	      Ports		      [1, 2, 1]
	      Position		      [75, 51, 115, 124]
	      TreatAsAtomicUnit	      on
	      MinAlgLoopOccurrences   off
	      PropExecContextAcrossSSBoundary on
	      RTWSystemCode	      "Auto"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	      System {
		Name			"D Latch"
		Location		[756, 470, 1027, 609]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "D"
		  Position		  [25, 55, 45, 75]
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  EnablePort
		  Name			  "C"
		  Ports			  []
		  Position		  [15, 15, 35, 35]
		}
		Block {
		  BlockType		  Logic
		  Name			  "Logic"
		  Ports			  [1, 1]
		  Position		  [135, 93, 165, 117]
		  Operator		  "NOT"
		  Inputs		  "1"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Q"
		  Position		  [205, 55, 225, 75]
		  IconDisplay		  "Port number"
		  InitialOutput		  "0"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "!Q"
		  Position		  [205, 95, 225, 115]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  InitialOutput		  "1"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Line {
		  SrcBlock		  "D"
		  SrcPort		  1
		  Points		  [50, 0]
		  Branch {
		    Points		    [0, 40]
		    DstBlock		    "Logic"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Q"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Logic"
		  SrcPort		  1
		  DstBlock		  "!Q"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q"
	      Position		      [140, 63, 170, 77]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "!Q"
	      Position		      [140, 98, 170, 112]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      InitialOutput	      "1"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "D Latch"
	      SrcPort		      2
	      DstBlock		      "!Q"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "D"
	      SrcPort		      1
	      DstBlock		      "D Latch"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "D Latch"
	      SrcPort		      1
	      DstBlock		      "Q"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "C"
	      SrcPort		      1
	      DstBlock		      "D Latch"
	      DstPort		      enable
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "J-K\nFlip-Flop"
	  Ports			  [3, 2]
	  Position		  [305, 17, 350, 93]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "JKFlipFlop"
	  MaskDescription	  "J-K Flip-Flop Block (Negative Edge Triggere"
"d)"
	  MaskHelp		  "The J-K flip-flop block has the following c"
"haracteristic table\n<pre>\n  Q(t)  J(t)  K(t)   Q(tnext)\n  ----------------"
"-----------\n   0     0     0      0\n   0     0     1      0\n   0     1    "
" 0      1\n   0     1     1      1\n   1     0     0      1\n   1     0     1"
"      0\n   1     1     0      1\n   1     1     1      0\n</pre>\nThe JK fli"
"p-flop transfers \"data\" into a memory element (flip-flop) on the\nnegative "
"edge of each clock pulse (CLK). Q(tnext) refers to the output on a\nclock pul"
"se (CLK) falling (negative) edge."
	  MaskPromptString	  "Initial condition (state of Q):"
	  MaskStyleString	  "edit"
	  MaskTunableValueString  "on"
	  MaskEnableString	  "on"
	  MaskVisibilityString	  "on"
	  MaskToolTipString	  "on"
	  MaskVariables		  "initial_condition=@1;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    3
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "J-K\nFlip-Flop"
	    Location		    [263, 469, 463, 651]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "J"
	      Position		      [25, 63, 55, 77]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "CLK"
	      Position		      [85, 15, 115, 30]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "K"
	      Position		      [25, 98, 55, 112]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "J-K\nFlip-Flop"
	      Ports		      [2, 2, 0, 1]
	      Position		      [80, 51, 120, 124]
	      TreatAsAtomicUnit	      on
	      MinAlgLoopOccurrences   off
	      PropExecContextAcrossSSBoundary on
	      RTWSystemCode	      "Auto"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		3
		ShowSigGenPortName	on
	      }
	      System {
		Name			"J-K\nFlip-Flop"
		Location		[545, 494, 847, 702]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "J"
		  Position		  [5, 110, 45, 130]
		  IconDisplay		  "Port number"
		  LatchInput		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "K"
		  Position		  [10, 150, 45, 170]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  on
		}
		Block {
		  BlockType		  TriggerPort
		  Name			  "Trigger"
		  Ports			  []
		  Position		  [20, 15, 40, 35]
		  TriggerType		  "falling"
		  StatesWhenEnabling	  "reset"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux"
		  Ports			  [1, 2]
		  Position		  [175, 70, 180, 165]
		  BackgroundColor	  "black"
		  Outputs		  "2"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  CombinatorialLogic
		  Name			  "Logic"
		  Position		  [120, 104, 150, 136]
		  TruthTable		  "[0 1; 0 1; 1 0; 1 0; 1 0; 0 1; 1 0;"
" 0 1]"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Memory
		  Name			  "Memory"
		  Position		  [120, 25, 160, 55]
		  Orientation		  "left"
		  X0			  "initial_condition"
		  InheritSampleTime	  on
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [3, 1]
		  Position		  [90, 59, 95, 181]
		  Inputs		  "3"
		  DisplayOption		  "bar"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		  Port {
		    PortType		    0
		    PortNumber		    2
		    ShowSigGenPortName	    on
		  }
		  Port {
		    PortType		    0
		    PortNumber		    3
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Q"
		  Position		  [255, 85, 275, 105]
		  IconDisplay		  "Port number"
		  InitialOutput		  "initial_condition"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "!Q"
		  Position		  [255, 130, 275, 150]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  InitialOutput		  "~initial_condition"
		  Port {
		    PortType		    0
		    PortNumber		    1
		    ShowSigGenPortName	    on
		  }
		}
		Line {
		  SrcBlock		  "J"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "K"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Memory"
		  SrcPort		  1
		  Points		  [-55, 0; 0, 40]
		  DstBlock		  "Mux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  1
		  Points		  [25, 0]
		  Branch {
		    DstBlock		    "Q"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, -55]
		    DstBlock		    "Memory"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  2
		  DstBlock		  "!Q"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Logic"
		  SrcPort		  1
		  DstBlock		  "Demux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Mux"
		  SrcPort		  1
		  DstBlock		  "Logic"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q"
	      Position		      [145, 63, 175, 77]
	      IconDisplay	      "Port number"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "!Q"
	      Position		      [145, 98, 175, 112]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "J-K\nFlip-Flop"
	      SrcPort		      2
	      DstBlock		      "!Q"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "K"
	      SrcPort		      1
	      DstBlock		      "J-K\nFlip-Flop"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "J"
	      SrcPort		      1
	      DstBlock		      "J-K\nFlip-Flop"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "J-K\nFlip-Flop"
	      SrcPort		      1
	      DstBlock		      "Q"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "CLK"
	      SrcPort		      1
	      DstBlock		      "J-K\nFlip-Flop"
	      DstPort		      trigger
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "S-R\nFlip-Flop"
	  Ports			  [2, 2]
	  Position		  [155, 15, 200, 90]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "SRFlipFlop"
	  MaskDescription	  "S-R Flip-Flop Block\n"
	  MaskHelp		  "The S-R flip-flop also known as a set-reset"
" flip-flop. This implementation\nis modeled after an S-R flip-flop constructe"
"d using NOR gates. The \ntruth table for this block is:\n<pre>\n S  R   Q  !Q"
"\n ----------------\n 1  0   1  0\n 0  0   1  0  (after S == 1, R == 0)\n 0  "
"1   0  1\n 0  0   0  1  (after S == 0, R == 1)\n 1  1   0  0\n</pre>\n\nIn an"
" S-R flip-flop that is implemented with NOR gates, when a 1 is\napplied to bo"
"th the set and reset inputs, both outputs go to 0. Technically,\nthis state i"
"s undefined and is usually avoided. Note, if the flip-flop is\nimplemented wi"
"th NAND gates, when a 0 is applied to both inputs, both outputs\ngo to 0 and "
"when a 1 is applied to both inputs, the output depends on\nthe previous state"
" of the flip-flop (previous value of Q).\n"
	  MaskPromptString	  "Initial condition (state of Q):"
	  MaskStyleString	  "edit"
	  MaskTunableValueString  "on"
	  MaskEnableString	  "on"
	  MaskVisibilityString	  "on"
	  MaskToolTipString	  "on"
	  MaskVariables		  "initial_condition=@1;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "S-R\nFlip-Flop"
	    Location		    [551, 78, 853, 280]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "S"
	      Position		      [35, 60, 55, 80]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "R"
	      Position		      [35, 105, 55, 125]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      Ports		      [1, 2]
	      Position		      [175, 66, 180, 159]
	      Outputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      CombinatorialLogic
	      Name		      "Logic"
	      Position		      [115, 99, 145, 131]
	      TruthTable	      "[0 1;1 0;0 1;0 1;1 0;1 0;0 0;0 0]"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Memory
	      Name		      "Memory"
	      Position		      [115, 25, 155, 55]
	      Orientation	      "left"
	      X0		      "initial_condition"
	      InheritSampleTime	      on
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [3, 1]
	      Position		      [90, 49, 95, 181]
	      Inputs		      "3"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		3
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q"
	      Position		      [255, 80, 275, 100]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "!Q"
	      Position		      [255, 125, 275, 145]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      InitialOutput	      "1"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "R"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "S"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      1
	      Points		      [25, 0]
	      Branch {
		Points			[0, -50]
		DstBlock		"Memory"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Q"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      2
	      DstBlock		      "!Q"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Logic"
	      SrcPort		      1
	      DstBlock		      "Demux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Logic"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Memory"
	      SrcPort		      1
	      Points		      [-100, 0; 0, 120]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	  }
	}
	Annotation {
	  Name			  "Note: J-K Flip-Flop is Negative-Edge-Trigge"
"red"
	  Position		  [188, 138]
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Linearization"
      Ports		      []
      Position		      [349, 22, 399, 72]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      PropExecContextAcrossSSBoundary on
      RTWSystemCode	      "Auto"
      System {
	Name			"Linearization"
	Location		[370, 232, 610, 538]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "Switched\nderivative for\nlinearization"
	  Ports			  [1, 1]
	  Position		  [80, 57, 155, 113]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Derivative for linearization"
	  MaskDescription	  "Switched derivative with proper transfer fu"
"nction approximation for linearization."
	  MaskHelp		  "This block should be used in place of the d"
"erivative when you are linearizing the model. It approximates the derivative "
"with a proper transfer function."
	  MaskPromptString	  "Switch value (1 for linearization, 0 for si"
"mulation):|Derivative constant  Ns/(s+N):"
	  MaskStyleString	  "edit,edit"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskToolTipString	  "on,on"
	  MaskVarAliasString	  ","
	  MaskVariables		  "switchVal=@1;derivConst=@2;"
	  MaskInitialization	  " num = [derivConst,0]; den = [1, derivConst"
"];\n"
	  MaskDisplay		  "disp('du/dt')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0|100"
	  MaskTabNameString	  ","
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Switched\nderivative for\nlinearization"
	    Location		    [427, 432, 916, 697]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [15, 123, 45, 137]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Derivative
	      Name		      "Derivative"
	      Position		      [245, 165, 275, 185]
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [340, 120, 360, 140]
	      ShowName		      off
	      IconShape		      "round"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Switch"
	      Position		      [95, 72, 205, 108]
	      ShowName		      off
	      Gain		      "switchVal"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      TransferFcn
	      Name		      "Transfer function\napproximation"
	      Position		      [240, 69, 290, 111]
	      Numerator		      "num "
	      Denominator	      "den"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "~ switch"
	      Position		      [95, 157, 210, 193]
	      ShowName		      off
	      Gain		      "real(~switchVal)"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [410, 123, 440, 137]
	      IconDisplay	      "Port number"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [30, 0]
	      Branch {
		DstBlock		"~ switch"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Switch"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Switch"
	      SrcPort		      1
	      DstBlock		      "Transfer function\napproximation"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "~ switch"
	      SrcPort		      1
	      DstBlock		      "Derivative"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Derivative"
	      SrcPort		      1
	      Points		      [70, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Transfer function\napproximation"
	      SrcPort		      1
	      Points		      [55, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  TransportDelay
	  Name			  "Switched\ntransport delay\nfor linearizatio"
"n"
	  Position		  [85, 172, 155, 218]
	  PadeOrder		  "2"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	}
	Annotation {
	  Name			  "Block for use with linmod:"
	  Position		  [86, 25]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Transformations"
      Ports		      []
      Position		      [219, 22, 269, 72]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      PropExecContextAcrossSSBoundary on
      RTWSystemCode	      "Auto"
      System {
	Name			"Transformations"
	Location		[236, 212, 388, 511]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "Cartesian to\nPolar"
	  Ports			  [2, 2]
	  Position		  [95, 17, 125, 48]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Cart2Polar"
	  MaskDescription	  "Transformation from cartesian to polar coor"
"dinates.\n[x, y] -> [r, theta]\n\nr = sqrt(x^2 + y^2);\ntheta = atan(y/x);"
	  MaskHelp		  "Unmask this block for more help."
	  MaskDisplay		  "plot(0,0,100,100,[24,20,15,20,20],[85,95,85"
",95,20],[80,20,95,85,95,85],[70,20,20,15,20,24],[56,56,55,52,50,46],[20,26,31"
",35,38,42])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Cartesian to\nPolar"
	    Location		    [136, 183, 495, 389]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "x"
	      Position		      [20, 70, 40, 90]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "y"
	      Position		      [20, 129, 40, 151]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [75, 96, 105, 129]
	      Inputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "x->r"
	      Position		      [155, 72, 260, 98]
	      Expr		      "hypot(u[1],u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "x->theta"
	      Position		      [160, 129, 265, 151]
	      Expr		      "atan2(u[2],u[1])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "r"
	      Position		      [295, 75, 315, 95]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "theta"
	      Position		      [295, 130, 315, 150]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "x->theta"
	      SrcPort		      1
	      DstBlock		      "theta"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "y"
	      SrcPort		      1
	      Points		      [15, 0]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "x"
	      SrcPort		      1
	      Points		      [15, 0]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "x->r"
	      SrcPort		      1
	      DstBlock		      "r"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      Points		      [15, 0; 0, 0]
	      Branch {
		Points			[0, -30]
		DstBlock		"x->r"
		DstPort			1
	      }
	      Branch {
		Points			[0, 25]
		DstBlock		"x->theta"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Cartesian to\nSpherical"
	  Ports			  [3, 3]
	  Position		  [95, 90, 125, 120]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Cart2Sph"
	  MaskDescription	  "Transformation from cartesian to spherical "
"coordinates.\n[x, y, z] -> [r, theta, phi]\n\np = hypot(x,y); r = hypot(p,z);"
"\ntheta = atan(y/x);\nphi = atan(p/z);"
	  MaskHelp		  "Unmask this block for more help."
	  MaskDisplay		  "plot(0,0,100,100,[45,40,35,40,40],[85,95,85"
",95,30],[22,10,14,10,40,95,85,95,85],[12,10,20,10,30,30,25,30,35],[70,40],[80"
",30],[54,52,50,47,44,40],[53,55,56,58,59,59])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    3
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Cartesian to\nSpherical"
	    Location		    [224, 271, 847, 655]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "x"
	      Position		      [20, 70, 40, 90]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "y"
	      Position		      [20, 114, 40, 136]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "z"
	      Position		      [195, 154, 215, 176]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [75, 97, 105, 133]
	      ShowName		      off
	      Inputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux1"
	      Ports		      [2, 1]
	      Position		      [295, 107, 325, 143]
	      ShowName		      off
	      Inputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "calc phi"
	      Position		      [395, 189, 500, 211]
	      Expr		      "atan2(u[2],u[1])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "calc r"
	      Position		      [395, 112, 500, 138]
	      Expr		      "hypot(u[1],u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "calc theta"
	      Position		      [395, 264, 500, 286]
	      Expr		      "atan2(u[1],u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "temp"
	      Position		      [155, 102, 260, 128]
	      Expr		      "hypot(u[1],u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "r "
	      Position		      [560, 115, 580, 135]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "theta"
	      Position		      [560, 190, 580, 210]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "phi"
	      Position		      [560, 265, 580, 285]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Mux1"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		DstBlock		"calc r"
		DstPort			1
	      }
	      Branch {
		Points			[0, 150]
		DstBlock		"calc theta"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		DstBlock		"temp"
		DstPort			1
	      }
	      Branch {
		Points			[0, 85]
		DstBlock		"calc phi"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "calc r"
	      SrcPort		      1
	      DstBlock		      "r "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "z"
	      SrcPort		      1
	      Points		      [35, 0; 0, -30]
	      DstBlock		      "Mux1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "temp"
	      SrcPort		      1
	      DstBlock		      "Mux1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "x"
	      SrcPort		      1
	      Points		      [15, 0]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "y"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "calc theta"
	      SrcPort		      1
	      DstBlock		      "phi"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "calc phi"
	      SrcPort		      1
	      DstBlock		      "theta"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Celsius to\nFahrenheit"
	  Ports			  [1, 1]
	  Position		  [95, 160, 125, 190]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "CelsiusToFahrenheit"
	  MaskDescription	  "Conversion from degrees Celsius to degrees "
"Fahrenheit.\n\nF=9/5*C+32"
	  MaskHelp		  "This block converts from degrees Celsius to"
" degrees Fahrenheit."
	  MaskDisplay		  "disp('C2F')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Celsius to\nFahrenheit"
	    Location		    [340, 553, 580, 636]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Celsius\nin"
	      Position		      [15, 15, 35, 35]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [95, 30, 115, 50]
	      ShowName		      off
	      Value		      "32"
	      OutDataTypeMode	      "Inherit via back propagation"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [60, 7, 95, 43]
	      ShowName		      off
	      Gain		      "9/5"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [140, 15, 160, 50]
	      ShowName		      off
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Fahrenheit\nout"
	      Position		      [180, 25, 200, 45]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Fahrenheit\nout"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Celsius\nin"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Degrees to\nRadians"
	  Ports			  [1, 1]
	  Position		  [20, 225, 50, 255]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "DegreesToRadians"
	  MaskDescription	  "Conversion from Degrees to Radians.\n\nR=pi"
"/180*D"
	  MaskHelp		  "This block converts from Degrees to Radians"
"."
	  MaskDisplay		  "disp('D2R')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Degrees to\nRadians"
	    Location		    [263, 524, 470, 605]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Degrees\nin"
	      Position		      [20, 25, 40, 45]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain1"
	      Position		      [70, 15, 120, 55]
	      ShowName		      off
	      Gain		      "pi/180"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Radians\nout"
	      Position		      [145, 25, 165, 45]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Degrees\nin"
	      SrcPort		      1
	      DstBlock		      "Gain1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain1"
	      SrcPort		      1
	      DstBlock		      "Radians\nout"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Fahrenheit\nto Celsius"
	  Ports			  [1, 1]
	  Position		  [20, 160, 50, 190]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "FahrenheitToCelsius"
	  MaskDescription	  "Conversion from degrees Fahrenheit to degre"
"es Celsius.\n\nC=5/9*(F-32);"
	  MaskHelp		  "This block converts from degrees Fahrenheit"
" to degrees Celsius."
	  MaskDisplay		  "disp('F2C')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Fahrenheit\nto Celsius"
	    Location		    [267, 546, 509, 627]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Fahrenheit\nin"
	      Position		      [20, 15, 40, 35]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [65, 30, 85, 50]
	      ShowName		      off
	      Value		      "32"
	      OutDataTypeMode	      "Inherit via back propagation"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain1"
	      Position		      [145, 17, 180, 53]
	      ShowName		      off
	      Gain		      "5/9"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [105, 15, 125, 50]
	      ShowName		      off
	      Inputs		      "+-"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Celsius\nout"
	      Position		      [205, 25, 225, 45]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Gain1"
	      SrcPort		      1
	      DstBlock		      "Celsius\nout"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Gain1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Fahrenheit\nin"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Polar to\nCartesian"
	  Ports			  [2, 2]
	  Position		  [20, 17, 50, 48]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Polar2Cart"
	  MaskDescription	  "Transformation from polar to cartesian coor"
"dinates.\n[r, theta] -> [x, y]\n\nx = r * cos(theta);\ny = r * sin(theta);\n"
	  MaskHelp		  "Unmask this block for more help."
	  MaskDisplay		  "plot(0,0,100,100,[25,20,15,20,20],[85,95,85"
",95,20],[70,20,95,86,95,85],[60,20,20,15,20,25],[70,70],[45,54],[70,70],[30,4"
"0],[70,70],[20,25],[55,65],[60,60],[40,50],[60,60],[25,34],[60,60],[20,21],[6"
"0,60],[70,70,68],[57,60,60])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Polar to\nCartesian"
	    Location		    [4, 51, 363, 257]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "r "
	      Position		      [20, 70, 40, 90]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "theta "
	      Position		      [20, 129, 40, 151]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [75, 96, 105, 129]
	      ShowName		      off
	      Inputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "r->x"
	      Position		      [155, 72, 260, 98]
	      Expr		      "u[1]*cos(u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "theta->y"
	      Position		      [160, 129, 265, 151]
	      Expr		      "u[1]*sin(u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "x"
	      Position		      [295, 75, 315, 95]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "y"
	      Position		      [295, 130, 315, 150]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      Points		      [15, 0; 0, 0]
	      Branch {
		Points			[0, -30]
		DstBlock		"r->x"
		DstPort			1
	      }
	      Branch {
		Points			[0, 25]
		DstBlock		"theta->y"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "r->x"
	      SrcPort		      1
	      DstBlock		      "x"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "r "
	      SrcPort		      1
	      Points		      [10, 0; 0, 25]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "theta "
	      SrcPort		      1
	      Points		      [10, 0; 0, -20]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "theta->y"
	      SrcPort		      1
	      DstBlock		      "y"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Radians\nto Degrees"
	  Ports			  [1, 1]
	  Position		  [95, 225, 125, 255]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "RadiansToDegrees"
	  MaskDescription	  "Conversion from Radians to Degrees.\n\nD=18"
"0/pi*R"
	  MaskHelp		  "This block converts from Radians to Degrees"
"."
	  MaskDisplay		  "disp('R2D')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Radians\nto Degrees"
	    Location		    [337, 532, 542, 629]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Radians\nin"
	      Position		      [15, 25, 35, 45]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [60, 17, 110, 53]
	      ShowName		      off
	      Gain		      "180/pi"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Degrees\nout"
	      Position		      [135, 25, 155, 45]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Radians\nin"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Degrees\nout"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Spherical to\nCartesian"
	  Ports			  [3, 3]
	  Position		  [20, 90, 50, 120]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextAcrossSSBoundary on
	  RTWSystemCode		  "Auto"
	  MaskType		  "Sph2Cart"
	  MaskDescription	  "Transformation from spherical to cartesian "
"coordinates.\n[r, theta, phi] -> [x, y, z]\n\nx = r * sin(phi) * cos(theta);"
"\ny = r * sin(phi) * sin(theta);\nz = r * cos(phi);"
	  MaskHelp		  "Unmask this block for more help."
	  MaskDisplay		  "plot(0,0,100,100,[45,40,35,40,40],[85,95,85"
",95,40],[85,95,85,95,40],[35,40,45,40,40],[60,40,10,20,10,14],[70,40,10,13,10"
",20],[56,45],[70,70],[60,60],[50,60],[60,60],[30,40],[50,60],[20,20],[30,40],"
"[20,20],[45,55],[35,25],[75,65],[35,25])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  Port {
	    PortType		    0
	    PortNumber		    1
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    2
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortType		    0
	    PortNumber		    3
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Spherical to\nCartesian"
	    Location		    [92, 139, 715, 491]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "r"
	      Position		      [20, 70, 40, 90]
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "theta"
	      Position		      [20, 164, 40, 186]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "phi"
	      Position		      [20, 114, 40, 136]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [75, 97, 105, 133]
	      ShowName		      off
	      Inputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux1"
	      Ports		      [2, 1]
	      Position		      [315, 107, 345, 143]
	      ShowName		      off
	      Inputs		      "2"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	      Port {
		PortType		0
		PortNumber		2
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "temp"
	      Position		      [155, 102, 260, 128]
	      Expr		      "u[1]*sin(u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "x"
	      Position		      [395, 112, 500, 138]
	      Expr		      "u[1]*cos(u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "y"
	      Position		      [395, 209, 500, 231]
	      Expr		      "u[1]*sin(u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "z"
	      Position		      [395, 304, 500, 326]
	      Expr		      "u[1]*cos(u[2])"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "X"
	      Position		      [560, 115, 580, 135]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Y"
	      Position		      [560, 210, 580, 230]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Z"
	      Position		      [565, 305, 585, 325]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	      Port {
		PortType		0
		PortNumber		1
		ShowSigGenPortName	on
	      }
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		DstBlock		"temp"
		DstPort			1
	      }
	      Branch {
		Points			[0, 200]
		DstBlock		"z"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Mux1"
	      SrcPort		      1
	      Points		      [15, 0]
	      Branch {
		DstBlock		"x"
		DstPort			1
	      }
	      Branch {
		Points			[0, 95]
		DstBlock		"y"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "theta"
	      SrcPort		      1
	      Points		      [235, 0; 0, -40]
	      DstBlock		      "Mux1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "phi"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "r"
	      SrcPort		      1
	      Points		      [15, 0]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "temp"
	      SrcPort		      1
	      DstBlock		      "Mux1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "x"
	      SrcPort		      1
	      DstBlock		      "X"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "y"
	      SrcPort		      1
	      DstBlock		      "Y"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "z"
	      SrcPort		      1
	      DstBlock		      "Z"
	      DstPort		      1
	    }
	  }
	}
      }
    }
  }
}
