📄 sanjay_run_model1.mdl
字号:
roundingMode "Floor"
overflowMode off
LockScale off
truncOrWrapMode "Truncate"
wrap_flag "None"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [605, 137, 635, 168]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Xc"
Position [15, 155, 45, 185]
Value "1000"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Y0"
Position [60, 150, 90, 180]
Value "400"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Yc"
Position [15, 225, 45, 255]
Value "500"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "c"
Position [65, 66, 140, 94]
Value "300000000"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "cj"
Position [15, 270, 45, 300]
Value "sqrt(-1)"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "fc"
Position [15, 95, 45, 125]
Value "1500000000"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "pi2"
Position [110, 20, 140, 50]
Value "6.28"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "fc"
SrcPort 1
Points [110, 0]
DstBlock "Embedded\nMATLAB Function4"
DstPort 3
}
Line {
SrcBlock "Xc"
SrcPort 1
Points [0, -50]
DstBlock "Embedded\nMATLAB Function4"
DstPort 4
}
Line {
SrcBlock "L"
SrcPort 1
DstBlock "Embedded\nMATLAB Function4"
DstPort 5
}
Line {
SrcBlock "Y0"
SrcPort 1
Points [0, 10; 65, 0]
DstBlock "Embedded\nMATLAB Function4"
DstPort 6
}
Line {
SrcBlock "Pad"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Embedded\nMATLAB Function"
DstPort 1
}
Line {
SrcBlock "Embedded\nMATLAB Function"
SrcPort 1
Points [10, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Embedded\nMATLAB Function1"
DstPort 1
}
Line {
Labels [1, 0]
SrcBlock "Pad1"
SrcPort 1
Points [175, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Embedded\nMATLAB Function4"
SrcPort 1
DstBlock "Pad2"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Embedded\nMATLAB Function4"
SrcPort 2
DstBlock "Pad"
DstPort 1
}
Line {
SrcBlock "Embedded\nMATLAB Function4"
SrcPort 3
DstBlock "Pad1"
DstPort 1
}
Line {
SrcBlock "Embedded\nMATLAB Function1"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "IFFT"
SrcPort 1
Points [30, 0]
DstBlock "Embedded\nMATLAB Function2"
DstPort 2
}
Line {
SrcBlock "Pad2"
SrcPort 1
Points [480, 0]
DstBlock "Embedded\nMATLAB Function2"
DstPort 1
}
Line {
SrcBlock "pi2"
SrcPort 1
Points [10, 0; 0, 25]
DstBlock "Embedded\nMATLAB Function4"
DstPort 1
}
Line {
SrcBlock "c"
SrcPort 1
DstBlock "Embedded\nMATLAB Function4"
DstPort 2
}
Line {
SrcBlock "Yc"
SrcPort 1
Points [60, 0; 0, -60]
DstBlock "Embedded\nMATLAB Function4"
DstPort 7
}
Line {
SrcBlock "cj"
SrcPort 1
Points [80, 0; 0, -85]
DstBlock "Embedded\nMATLAB Function4"
DstPort 8
}
Annotation {
Position [653, 272]
}
Annotation {
Position [370, 112]
}
Annotation {
Position [360, 113]
}
Annotation {
Position [324, 278]
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . 8 8 ( 0 % \" $ ! 0 . , 8 ( ! % \" $ $ 0 0 0 249&5 "
}
DataRecord {
Tag DataTag0
Data " %)30 . 8 8 ( 0 % \" $ ! 0 . , 8 ( ! % \" $ # 0 0 , 1D94 "
}
}
# Finite State Machines
#
# Stateflow Version 6.7 (R2007b) dated Aug 7 2007, 16:48:14
#
#
Stateflow {
machine {
id 1
name "sanjay_run_model1"
created "22-Apr-2009 12:36:10"
isLibrary 0
firstTarget 39
sfVersion 67014000.000001
}
chart {
id 2
name "Embedded\nMATLAB Function1"
windowPosition [240.45 315 200.25 189.75]
viewLimits [0 156.75 0 153.75]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 3 0 0]
firstTransition 5
firstJunction 4
viewObj 2
machine 1
decomposition CLUSTER_CHART
type EML_CHART
firstData 6
chartFileNumber 1
disableImplicitCasting 1
eml {
name "fcn"
}
}
state {
id 3
labelString "eML_blk_kernel()"
position [18 64.5 118 66]
fontSize 12
chart 2
treeNode [2 0 0 0]
superState SUBCHART
subviewer 2
type FUNC_STATE
decomposition CLUSTER_STATE
eml {
isEML 1
script "function fs2 = fcn(fs1)\n% This block supports the Embedded MATLAB subset.\n% See the help menu for details. \n\nfs2=fftshift(fs1);"
editorLayout "100 M4x1[146 214 671 364]"
}
}
junction {
id 4
position [23.5747 49.5747 7]
chart 2
linkNode [2 0 0]
subviewer 2
type CONNECTIVE_JUNCTION
}
transition {
id 5
labelString "{eML_blk_kernel();}"
labelPosition [32.125 19.875 102.544 14.964]
fontSize 12
src {
intersection [0 0 1 0 23.5747 14.625 0 0]
}
dst {
id 4
intersection [7 0 -1 -1 23.5747 42.5747 0 0]
}
midPoint [23.5747 24.9468]
chart 2
linkNode [2 0 0]
dataLimits [23.575 23.575 14.625 34.575]
subviewer 2
drawStyle SMART
executionOrder 1
}
data {
id 6
name "fs1"
linkNode [2 0 7]
scope INPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
complexity SF_COMPLEX_INHERITED
frame SF_FRAME_NO
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
complexity SF_COMPLEX_INHERITED
}
data {
id 7
name "fs2"
linkNode [2 6 0]
scope OUTPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
primitive SF_DOUBLE_TYPE
isSigned 1
wordLength "16"
}
complexity SF_COMPLEX_INHERITED
frame SF_FRAME_NO
}
dataType "inherited"
complexity SF_COMPLEX_INHERITED
}
instance {
id 8
name "Embedded\nMATLAB Function1"
machine 1
chart 2
}
chart {
id 9
name "Embedded\nMATLAB Function"
windowPosition [225.45 330 200.25 189.75]
viewLimits [0 156.75 0 153.75]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 10 0 0]
firstTransition 12
firstJunction 11
viewObj 9
machine 1
decomposition CLUSTER_CHART
type EML_CHART
firstData 13
chartFileNumber 2
disableImplicitCasting 1
eml {
name "fcn"
}
}
state {
id 10
labelString "eML_blk_kernel()"
position [18 64.5 118 66]
fontSize 12
chart 9
treeNode [9 0 0 0]
superState SUBCHART
subviewer 9
type FUNC_STATE
decomposition CLUSTER_STATE
eml {
isEML 1
script "function fs1 = fcn(fs0)\n% This block supports the Embedded MATLAB subset.\n% See the help menu for details. \n\nfs1=fftshift(fs0);"
editorLayout "100 M4x1[146 214 671 364]"
}
}
junction {
id 11
position [23.5747 49.5747 7]
chart 9
linkNode [9 0 0]
subviewer 9
type CONNECTIVE_JUNCTION
}
transition {
id 12
labelString "{eML_blk_kernel();}"
labelPosition [32.125 19.875 102.544 14.964]
fontSize 12
src {
intersection [0 0 1 0 23.5747 14.625 0 0]
}
dst {
id 11
intersection [7 0 -1 -1 23.5747 42.5747 0 0]
}
midPoint [23.5747 24.9468]
chart 9
linkNode [9 0 0]
dataLimits [23.575 23.575 14.625 34.575]
subviewer 9
drawStyle SMART
executionOrder 1
}
data {
id 13
name "fs0"
linkNode [9 0 14]
scope INPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
complexity SF_COMPLEX_INHERITED
}
dataType "inherited"
fixptType {
slope 1
baseType SF_INT16_TYPE
}
complexity SF_COMPLEX_INHERITED
}
data {
id 14
name "fs1"
linkNode [9 13 0]
scope OUTPUT_DATA
machine 1
props {
array {
size "-1"
}
type {
method SF_INHERITED_TYPE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -