Ma tla b 是當今使用最為廣泛的數學軟件,它具有相當強大的數值計算、數據處理、系統
分析、圖形顯示、甚至符號運算功能,是一個完整的數學平臺,但是它不能實現端口操作和
實時控制Borland C + +Builder是一種新穎的可視化編程語言,可方便實現交互界面、數據
采集和端口操作等,但是它在數值處理分析和算法工具等方面,效率遠遠低于Matlab語言
Verilog HDL: Magnitude
For a vector (a,b), the magnitude representation is the following:
A common approach to implementing these arithmetic functions is to use the Coordinate Rotation Digital Computer (CORDIC) algorithm. The CORDIC algorithm calculates the trigonometric functions of sine, cosine, magnitude, and phase using an iterative process. It is made up of a series of micro-rotations of the vector by a set of predetermined constants, which are powers of two. Using binary arithmetic, this algorithm essentially replaces multipliers with shift and add operations. In a Stratix™ device, it is possible to calculate some of these arithmetic functions directly, without having to implement the CORDIC algorithm.
結合單片機和M a t l a b 兩者的優點,基于事件驅動的中斷通信機制,提出一種Matlab 環境下PC 機與
單片機實時串行通信及數據處理的方法;完成單片機數據采集系統與PC 機的RS-232/RS-485 串行通
信及其通信數據的分析處理、文件存儲、F I R 濾波及圖形顯示;簡化系統開發流程,提高開發效率。
該方法已成功應用于一個P I C 1 6 F 8 7 6 單片機應用系統實例之中