koe_s_code.mdl
来自「WCDMA的仿真程序,分别用C和MATLAB两种语言仿真」· MDL 代码 · 共 471 行
MDL
471 行
Model { Name "koe_s_code" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines on ShowLineWidths on ShowPortDataTypes off StartTime "0.0" StopTime "10.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 on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" 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 off Created "Fri Jun 11 09:11:51 1999" Creator "maarit" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "maarit" ModifiedDateFormat "%<Auto>" LastModifiedDate "Tue Jun 22 19:12:30 1999" ModelVersionFormat "1.%<AutoIncrement:20>" 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 "koe_s_code" Location [962, 113, 1821, 1100] 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 Display Name "Display" Ports [1, 0, 0, 0, 0] Position [140, 21, 260, 159] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display1" Ports [1, 0, 0, 0, 0] Position [375, 13, 490, 217] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display10" Ports [1, 0, 0, 0, 0] Position [655, 40, 755, 150] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display11" Ports [1, 0, 0, 0, 0] Position [105, 196, 200, 264] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display2" Ports [1, 0, 0, 0, 0] Position [280, 185, 375, 345] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display3" Ports [1, 0, 0, 0, 0] Position [465, 247, 560, 313] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display4" Ports [1, 0, 0, 0, 0] Position [670, 190, 770, 260] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display5" Ports [1, 0, 0, 0, 0] Position [130, 348, 235, 442] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display6" Ports [1, 0, 0, 0, 0] Position [320, 375, 420, 445] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display7" Ports [1, 0, 0, 0, 0] Position [520, 359, 610, 431] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display8" Ports [1, 0, 0, 0, 0] Position [725, 358, 825, 432] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Display9" Ports [1, 0, 0, 0, 0] Position [155, 523, 265, 747] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType "S-Function" Name "S-Function" Ports [0, 1, 0, 0, 0] Position [15, 34, 105, 146] FunctionName "s_code" Parameters "nCode" PortCounts "[]" SFunctionModules "''" MaskPromptString "Spreading code length" MaskStyleString "popup(4|8|16|32|64|128|256)" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskVariables "nC=@1;" MaskInitialization "nCode=2^(nC+1);" MaskDisplay "disp('OVSF\\nspreading code')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "4" } Block { BlockType "S-Function" Name "S-Function1" Ports [0, 1, 0, 0, 0] Position [205, 187, 245, 303] FunctionName "s_code" Parameters "4" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function10" Ports [0, 1, 0, 0, 0] Position [555, 32, 595, 148] FunctionName "s_code" Parameters "4" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function11" Ports [0, 1, 0, 0, 0] Position [45, 172, 85, 288] FunctionName "s_code" Parameters "16" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function2" Ports [0, 1, 0, 0, 0] Position [415, 222, 455, 338] FunctionName "s_code" Parameters "32" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function3" Ports [0, 1, 0, 0, 0] Position [615, 167, 655, 283] FunctionName "s_code" Parameters "32" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function4" Ports [0, 1, 0, 0, 0] Position [55, 337, 95, 453] FunctionName "s_code" Parameters "16" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function5" Ports [0, 1, 0, 0, 0] Position [250, 352, 290, 468] FunctionName "s_code" Parameters "16" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function6" Ports [0, 1, 0, 0, 0] Position [460, 337, 500, 453] FunctionName "s_code" Parameters "32" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function7" Ports [0, 1, 0, 0, 0] Position [635, 337, 675, 453] FunctionName "s_code" Parameters "32" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function8" Ports [0, 1, 0, 0, 0] Position [70, 572, 110, 688] FunctionName "s_code" Parameters "16" PortCounts "[]" SFunctionModules "''" } Block { BlockType "S-Function" Name "S-Function9" Ports [0, 1, 0, 0, 0] Position [295, 27, 335, 143] FunctionName "s_code" Parameters "8" PortCounts "[]" SFunctionModules "''" } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "Display" DstPort 1 } Line { SrcBlock "S-Function9" SrcPort 1 Points [20, 0] DstBlock "Display1" DstPort 1 } Line { SrcBlock "S-Function8" SrcPort 1 Points [25, 0] DstBlock "Display9" DstPort 1 } Line { SrcBlock "S-Function10" SrcPort 1 Points [40, 0] DstBlock "Display10" DstPort 1 } Line { SrcBlock "S-Function11" SrcPort 1 DstBlock "Display11" DstPort 1 } Line { SrcBlock "S-Function5" SrcPort 1 DstBlock "Display6" DstPort 1 } Line { SrcBlock "S-Function6" SrcPort 1 DstBlock "Display7" DstPort 1 } Line { SrcBlock "S-Function7" SrcPort 1 DstBlock "Display8" DstPort 1 } Line { SrcBlock "S-Function4" SrcPort 1 DstBlock "Display5" DstPort 1 } Line { SrcBlock "S-Function3" SrcPort 1 DstBlock "Display4" DstPort 1 } Line { SrcBlock "S-Function2" SrcPort 1 DstBlock "Display3" DstPort 1 } Line { SrcBlock "S-Function1" SrcPort 1 Points [0, 20] DstBlock "Display2" DstPort 1 } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?