read teensy data into matlab

2 visualizzazioni (ultimi 30 giorni)
Ejay Nsugbe
Ejay Nsugbe il 25 Feb 2019
Risposto: DISHENG XU il 26 Set 2019
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.

Risposte (2)

Image Analyst
Image Analyst il 25 Feb 2019
Modificato: Image Analyst il 25 Feb 2019
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 Commenti
Ejay Nsugbe
Ejay Nsugbe il 25 Feb 2019
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 il 25 Feb 2019
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().

Accedi per commentare.


DISHENG XU
DISHENG XU il 26 Set 2019
Have you solved it? I have the same problem.

Categorie

Scopri di più su MATLAB Support Package for Arduino Hardware in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by