?? gpsnoise.mdl
字號(hào):
Model {
Name "gpsnoise"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "500.0"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip off
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType on
RTWSystemTargetFile "grt.tlc"
RTWOptions "-aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -a"
"InlineInvariantSignals=1 -aInlineParameters=0 -aLocalBlockOutputs=1 -aRollThr"
"eshold=5 -aZeroInternalMemoryAtStartup=1 -aZeroExternalMemoryAtStartup=1 -aIn"
"itFltsAndDblsToZero=1 -aGenerateReport=0 -aGenCodeOnly=0 -aRTWVerbose=1 -aInc"
"ludeHyperlinkInReport=0 -aLaunchReport=0 -aForceParamTrailComments=0 -aGenera"
"teComments=1 -aIgnoreCustomStorageClasses=1 -aIncHierarchyInIds=0 -aMaxRTWIdL"
"en=31 -aShowEliminatedStatements=0 -aPrefixModelToSubsysFcnNames=1 -aIncDataT"
"ypeInIds=0 -aInsertBlockDesc=0 -aSimulinkBlockComments=1 -aInlinedPrmAccess="
"\"Literals\" -aSuppressErrorStatus=0 -aModelReferenceCompliant=1 -aSupportNo"
"nInlinedSFcns=1 -aSupportContinuousTime=1 -aSupportComplex=1 -aSupportNonFini"
"te=1 -aSupportAbsoluteTime=1 -aTargetFcnLib=\"ansi_tfl_tmw.mat\" -aMultiInsta"
"nceERTCode=0 -aLogVarNameModifier=\"rt_\" -aIsPILTarget=0 -aCombineOutputUpda"
"teFcns=0 -aGenerateASAP2=0 -aGenerateSampleERTMain=0 -aGenerateFullHeader=1 -"
"aUtilityFuncGeneration=\"Auto\" -aIncludeFileDelimiter=\"Auto\" -aIncludeMdlT"
"erminateFcn=1 -aPurelyIntegerCode=0 -aERTCustomFileBanners=0 -aRTWCAPIStates="
"0 -aRTWCAPIParams=0 -aRTWCAPISignals=0 -aMatFileLogging=1 -aGenFloatMathFcnCa"
"lls=\"ANSI_C\" -aExtModeMexFile=\"ext_comm\" -aExtModeTransport=0 -aExtModeSt"
"aticAllocSize=1000000 -aExtModeTesting=0 -aExtModeStaticAlloc=0 -aExtMode=0 "
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect on
Created "Tue Mar 07 09:27:53 2006"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "campa"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Mar 13 07:44:58 2006"
ModelVersionFormat "1.%<AutoIncrement:22>"
ConfigurationManager "None"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "gpsnoise"
Location [135, 146, 479, 366]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "MultibandNoise"
Ports [0, 1, 0, 0, 0]
Position [75, 77, 110, 133]
ForegroundColor "blue"
ShowPortLabels on
MaskType "Multiband Noise"
MaskDescription " This block models multiband noise using four d"
"ifferent band limited \n white noise blocks, each one with its own power and "
"time scale.\n A first order lowpass filter with a selectable cut off frequenc"
"y is \n applied to the last three noises (have a look under the mask).\n The "
"output sampling time has to be multiple of the first sample time. "
MaskHelp " This block models multiband noise using four d"
"ifferent band limited \n white noise blocks, each one with its own power and "
"time scale.\n A first order lowpass filter with a selectable cut off frequenc"
"y is \n applied to the last three noises (have a look under the mask).\n The "
"output sampling time has to be multiple of the first sample time. "
MaskPromptString "Number Of Channels|Noise Powers|Sample Times (s"
"ec)|Filter Cutoff Frequency (rad/sec)|Base Seed|Output Sampling 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"
MaskVariables "n=@1;power=@2;time=@3;a=@4;sd=@5;STime=@6;"
MaskInitialization "n=fix(n);\nT=time(1);T1=time(2);T2=time(3);T3=t"
"ime(4);\nP=power(1);P1=power(2);P2=power(3);P3=power(4);\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "3|[2e-5 0.01 0.2 2]|[0.05 1 10 200]|2|3587|0.1"
System {
Name "MultibandNoise"
Location [99, 393, 700, 682]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Reference
Name "Band-Limited\nWhite Noise"
Ports [0, 1, 0, 0, 0]
Position [25, 215, 55, 245]
SourceBlock "simulink3/Sources/Band-Limited\nWhite Noise"
SourceType "Continuous White Noise."
Cov "P*ones(n,1)"
Ts "T"
seed "sd+[1:n]+0*n"
}
Block {
BlockType Reference
Name "Band-Limited\nWhite Noise1"
Ports [0, 1, 0, 0, 0]
Position [25, 85, 55, 115]
SourceBlock "simulink3/Sources/Band-Limited\nWhite Noise"
SourceType "Continuous White Noise."
Cov "P2*ones(n,1)"
Ts "T2"
seed "sd+[1:n]+2*n"
}
Block {
BlockType Reference
Name "Band-Limited\nWhite Noise2"
Ports [0, 1, 0, 0, 0]
Position [25, 25, 55, 55]
SourceBlock "simulink3/Sources/Band-Limited\nWhite Noise"
SourceType "Continuous White Noise."
Cov "P3*ones(n,1)"
Ts "T3"
seed "sd+[1:n]+1*n"
}
Block {
BlockType Reference
Name "Band-Limited\nWhite Noise3"
Ports [0, 1, 0, 0, 0]
Position [25, 145, 55, 175]
SourceBlock "simulink3/Sources/Band-Limited\nWhite Noise"
SourceType "Continuous White Noise."
Cov "P1*ones(n,1)"
Ts "T1"
seed "sd+[1:n]+3*n"
}
Block {
BlockType SubSystem
Name "IIR2"
Ports [1, 1, 0, 0, 0]
Position [240, 82, 295, 118]
ShowPortLabels on
MaskType "Discrete Time First Order IIR"
MaskDescription " Each channel has the transfer function \n"
" (1-exp(-aT))/(1-exp(-aT)(z^-1)) which is a good\n (pz-matched) approximati"
"on of a/(s+a) if 10*a*T<pi"
MaskHelp "<p>\n Each channel has the transfer functi"
"on \n (1-exp(-aT))/(1-exp(-aT)(z^-1)) which is a good\n (pz-matched) approx"
"imation of a/(s+a) if 10*a*T<pi\n</p>\n"
MaskPromptString "Number of Channels|Cutoff Frequency (a)|Ini"
"tial Condition|Sample Time"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskVariables "ni=@1;a=@2;x0=@3;T=@4;"
MaskInitialization "A=[];B=[];C=[];D=[];\nfor i=1:ni,\nA=[A,zer"
"os(size(A,1),1);zeros(1,size(A,2)),exp(-a*T)];\nB=[B,zeros(size(B,1),1);zeros"
"(1,size(B,2)),1-exp(-a*T)];\nC=[C,zeros(size(C,1),1);zeros(1,size(C,2)),exp(-"
"a*T)];\nD=[D,zeros(size(D,1),1);zeros(1,size(D,2)),1-exp(-a*T)];\nend"
MaskDisplay "dpoly(a,[1 a],'s')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "n|a|0|T"
System {
Name "IIR2"
Location [364, 129, 780, 236]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [80, 43, 110, 57]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType DiscreteStateSpace
Name "Discrete State-Space"
Position [135, 32, 255, 68]
A "A"
B "B"
C "C"
D "D"
X0 "x0"
SampleTime "T"
}
Block {
BlockType Outport
Name "Out"
Position [275, 43, 305, 57]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Discrete State-Space"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Discrete State-Space"
DstPort 1
}
}
}
Block {
BlockType UnitDelay
Name "RateTransition"
Position [110, 29, 145, 51]
X0 "0"
SampleTime "T3"
}
Block {
BlockType UnitDelay
Name "RateTransition0"
Position [400, 89, 435, 111]
X0 "0"
SampleTime "T"
}
Block {
BlockType UnitDelay
Name "RateTransition1"
Position [110, 89, 145, 111]
X0 "0"
SampleTime "T2"
}
Block {
BlockType UnitDelay
Name "RateTransition2"
Position [110, 149, 145, 171]
X0 "0"
SampleTime "T1"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1, 0, 0, 0]
Position [185, 90, 205, 110]
ShowName off
IconShape "round"
Inputs "+++"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1, 0, 0, 0]
Position [335, 90, 355, 110]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow off
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [475, 85, 510, 115]
SampleTime "STime"
}
Block {
BlockType Outport
Name "w(t)"
Position [545, 93, 575, 107]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Band-Limited\nWhite Noise2"
SrcPort 1
DstBlock "RateTransition"
DstPort 1
}
Line {
SrcBlock "Band-Limited\nWhite Noise1"
SrcPort 1
DstBlock "RateTransition1"
DstPort 1
}
Line {
SrcBlock "Band-Limited\nWhite Noise3"
SrcPort 1
DstBlock "RateTransition2"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "IIR2"
DstPort 1
}
Line {
SrcBlock "RateTransition"
SrcPort 1
Points [45, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "RateTransition1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "RateTransition2"
SrcPort 1
Points [45, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "IIR2"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "RateTransition0"
DstPort 1
}
Line {
SrcBlock "Band-Limited\nWhite Noise"
SrcPort 1
Points [285, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "RateTransition0"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "w(t)"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1, 0, 0, 0, 0]
Position [150, 89, 180, 121]
Floating off
Location [130, 415, 454, 654]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "500"
YMin "-1"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Line {
SrcBlock "MultibandNoise"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -