标题: 基于FPGA的图像处理(四)--Matlab Language supported by Mcode [打印本页] 作者: pengpengpang 时间: 2014-2-20 20:25 标题: 基于FPGA的图像处理(四)--Matlab Language supported by Mcode
The MCode block supports the following MATLAB language constructs:
• Assignment statements
• Simple and compound if/else/elseif end statements
• switch statements
• Arithmetic expressions involving only addition and subtraction
• Addition
• Subtraction
• Multiplication
• Division by a power of two
2 Relational operators:
3 Logical operators:
4 MATLAB functions
Type conversion. The only supported data type is xfix, the Xilinx fixed-point type.
The xfix() type conversion function is used to convert to this type. The conversion
is done implicitly for integers but must be done explicitly for floating point constants.
All values must be scalar; arrays are not supported.