[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: csv file problem to open
From: |
Markus Mützel |
Subject: |
Re: csv file problem to open |
Date: |
Mon, 18 Feb 2019 15:18:24 +0100 |
> I am new with Octave. I am traying to open a file (attached) and I found
> many problems to open.
>
> I tried to open with the comand csvread but it open part of the information.
>
> I also traied with csv2cell but I open in the following way
>
> 0,02 -0,124 -0,293 ...
> 0,04 -0,116 -1,904 ...
> 0,06 -0,101 -2,690 ...
> 0,08 -0,101 -0,250 ...
> 0,10 -0,093 2,450 ....
> .........................
>
> after that I try the following
>
> c=csv2cell("Test1.csv",";");
> t=c(:,1);
> x1=c(:,2);
> plot (t,x1)
> error: plot: no data to plot
> error: called from
> __plt__ at line 122 column 11
> plot at line 223 column 10
>
>
>
> Could you help me?
You could probably:
- open the file with "fopen",
- read the complete content of the file with "fread",
- replace the ',' by '.' with "strrep" and
- finally scan the resulting string with "textscan".
Markus
- csv file problem to open, mrodrig, 2019/02/18
- Re: csv file problem to open, Ian McCallion, 2019/02/18
- Re: csv file problem to open, mrodrig, 2019/02/18
- Re: csv file problem to open, Nicholas Jankowski, 2019/02/18
- Re: csv file problem to open, Ian McCallion, 2019/02/18
- Re: csv file problem to open, Ian McCallion, 2019/02/18
- Re: csv file problem to open, Ian McCallion, 2019/02/18
- Re: csv file problem to open, mrodrig, 2019/02/18
- Re: csv file problem to open,
Markus Mützel <=