フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to Call my data and send it to Serial?

1 回表示 (過去 30 日間)
Dimas Agil Roeseno Kambuna
Dimas Agil Roeseno Kambuna 2013 年 3 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
It still about CSVIMPORT and my data. I imported 1000 data, that contains 1000 rows and 2 columns (1 column for time, and 1 column for voltage). I save my data in .mat files type, and I divide my data into several .mat type (0.mat, 1.mat, 2.mat, etc.) I want to ask, how I can send my data (voltage) which I called with CSVIMPORT and send it to serial?? I want to send my voltage data (column 2) to microcontroller that appropriate when the onset of the voltage (column 1). What I know is when we want to send data to serial, we using it:
s1 = serial(‘COM1′);
set(s1,’BaudRate’,9600,’DataBits’,8,’StopBits’,1,’InputBufferSize’,16000)
fopen(s1)
fprintf(s1,’???’);
But what code must I fill in '???' mark to get my data??
Thanks for your attention.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by