read teensy data into matlab

2 次查看(过去 30 天)
Ejay Nsugbe
Ejay Nsugbe 2019-2-25
回答: DISHENG XU 2019-9-26
Hi,
I am trying to create a way of reading a teensy3.6 output data into matlab in CSV format/any Matlab readable format.
Any help would be appreciated.

回答(2 个)

Image Analyst
Image Analyst 2019-2-25
编辑:Image Analyst 2019-2-25
So the teensy file is in CSV format? Have you tried csvread()?
If that doesn't work, try importdata(), dlmread(), textscan(), or as a last resort, write your own custom reader.
  2 个评论
Ejay Nsugbe
Ejay Nsugbe 2019-2-25
The teensy file is from my 'COM5' so presumably serial data. My question is based around how I can read this data continously and save as possibly a CSV file.
Image Analyst
Image Analyst 2019-2-25
What format is the data in? How far have you gotten? Can you read it into MATLAB yet? If you can read it in, you can save it to a CSV text file from MATLAB with the function csvwrite().

请先登录,再进行评论。


DISHENG XU
DISHENG XU 2019-9-26
Have you solved it? I have the same problem.

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by