📄 real2complex.mdl
字号:
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.1.0"
TargetFcnLib "ansi_tfl_tmw.mat"
TargetLibSuffix ""
TargetPreCompLibLocation ""
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"
}
}
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 "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType ComplexToMagnitudeAngle
Output "Magnitude and angle"
SampleTime "-1"
}
Block {
BlockType ComplexToRealImag
Output "Real and imag"
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 Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType MagnitudeAngleToComplex
Input "Magnitude and angle"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType RealImagToComplex
Input "Real and imag"
ConstantPart "0"
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "real2complex"
Location [346, 132, 926, 588]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle"
Ports [1, 2]
Position [280, 253, 310, 282]
Output "Magnitude and angle"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [280, 358, 310, 387]
Output "Real and imag"
}
Block {
BlockType Constant
Name "Constant"
Position [45, 20, 75, 50]
Value "3+5*i"
}
Block {
BlockType Constant
Name "Constant1"
Position [45, 85, 75, 115]
Value "2"
}
Block {
BlockType Constant
Name "Constant2"
Position [45, 145, 75, 175]
Value "3"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [375, 22, 520, 48]
FontSize 10
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [375, 85, 520, 115]
FontSize 10
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [375, 163, 520, 197]
FontSize 10
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display3"
Ports [1]
Position [380, 225, 470, 255]
FontSize 10
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display4"
Ports [1]
Position [380, 275, 470, 305]
FontSize 10
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display5"
Ports [1]
Position [380, 330, 470, 360]
FontSize 10
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display6"
Ports [1]
Position [380, 380, 470, 410]
FontSize 10
Decimation "1"
Lockdown off
}
Block {
BlockType MagnitudeAngleToComplex
Name "Magnitude-Angle\nto Complex"
Ports [2, 1]
Position [155, 82, 185, 113]
Input "Magnitude and angle"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [155, 163, 185, 192]
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0]
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Points [0, -10]
DstBlock "Magnitude-Angle\nto Complex"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [0, 0; 45, 0]
Branch {
Points [0, -55]
DstBlock "Magnitude-Angle\nto Complex"
DstPort 2
}
Branch {
Points [0, 25]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
}
Line {
SrcBlock "Magnitude-Angle\nto Complex"
SrcPort 1
Points [170, 0]
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Display2"
DstPort 1
}
Branch {
Points [0, 90]
Branch {
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
Points [25, 0; 0, -20]
DstBlock "Display3"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 2
Points [25, 0; 0, 15]
DstBlock "Display4"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [25, 0; 0, -20]
DstBlock "Display5"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [25, 0; 0, 15]
DstBlock "Display6"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -