Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how read this file ?

Subject: how read this file ?

From: Duvinage MAtthieu

Date: 10 Mar, 2010 21:40:21

Message: 1 of 2

Hi,
I would like to import data from a file. But I don't know how to do and especially the datum and the number (. and ,)
23.12.2009 20:30:00.000 3.916,5 3.917,3 3.915,0 3.917,0
23.12.2009 20:40:00.000 3.917,0 3.920,0 3.916,8 3.918,3

I would like to obtain a datum from the two first columns that can be plot as a X-axis. Regarding the number, how can we deal with the . and the , which is not the right way to encode data in Matlab ?

Thank you in advance.

Best regards,

Matthieu

Subject: how read this file ?

From: Sadik

Date: 11 Mar, 2010 13:51:06

Message: 2 of 2

Hi,

doc textscan

would help you.

Best.


"Duvinage MAtthieu" <duvmat2@hotmail.com> wrote in message <hn93k5$p7j$1@fred.mathworks.com>...
> Hi,
> I would like to import data from a file. But I don't know how to do and especially the datum and the number (. and ,)
> 23.12.2009 20:30:00.000 3.916,5 3.917,3 3.915,0 3.917,0
> 23.12.2009 20:40:00.000 3.917,0 3.920,0 3.916,8 3.918,3
>
> I would like to obtain a datum from the two first columns that can be plot as a X-axis. Regarding the number, how can we deal with the . and the , which is not the right way to encode data in Matlab ?
>
> Thank you in advance.
>
> Best regards,
>
> Matthieu

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us