Here is my general idea.I generate a matrix in Matlab. I want to transmit the numbers in matrix into FPGA. And these numbers will be sent to an algorithm implemented FPGA board. The algorithm will deal with these numbers and new result is sent back to PC(Matlab, I want to compare the result from MATLAB).
I know transmitting these numbers to FPGA board. I need a UART. I have one. I also have done the algorithms in FPGA. But I don't know how to transmit the numbers from Matlab to FPGA. Exactly to say, I don't know how to control uart. How does uart know the data come in? Shall i add like "FF" file head to transmitting number? ...I am totally lost now. I have no idea how to connect Matlab to FPGA. Please give me some suggestions. Thanks.