[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Import large field-delimited file with strings and numbers
From: |
Andreas Weber |
Subject: |
Re: Import large field-delimited file with strings and numbers |
Date: |
Sat, 06 Sep 2014 17:40:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
Am 06.09.2014 16:19, schrieb João Rodrigues:
>
> I need to import a large CSV file with multiple columns with mixed
> string and number entries, such as:
>
> field1, field2, field3, field4
> A, a, 1, 1.0,
> B, b, 2, 2.0,
> C, c, 3, 3.0,
>
> and I want to pass this on to something like
>
> cell1 ={[1,1] = A; [2,1] = B; [3,1] = C};
> cell2 ={[1,1] = a; [2,1] = b; [3,1] = c};
Are the first 2 columns only one character long? Then you don't need to
use a cell array for this. A simple char matrix would be sufficient.
-- Andy
- Import large field-delimited file with strings and numbers, João Rodrigues, 2014/09/06
- Re: Import large field-delimited file with strings and numbers, Francesco Potortì, 2014/09/06
- Re: Import large field-delimited file with strings and numbers,
Andreas Weber <=
- Re: Import large field-delimited file with strings and numbers, Joao Rodrigues, 2014/09/06
- Re: Import large field-delimited file with strings and numbers, Thomas D. Dean, 2014/09/06
- Re: Import large field-delimited file with strings and numbers, Francesco Potortì, 2014/09/07
- Re: Import large field-delimited file with strings and numbers, Ben Abbott, 2014/09/07
- Re: Import large field-delimited file with strings and numbers, Francesco Potortì, 2014/09/07
- Re: Import large field-delimited file with strings and numbers, Ben Abbott, 2014/09/07
- Re: Import large field-delimited file with strings and numbers, Philip Nienhuis, 2014/09/08
- how does fscanf with "C" work?, Francesco Potortì, 2014/09/08
- Re: how does fscanf with "C" work?, Thomas D. Dean, 2014/09/08
- Re: how does fscanf with "C" work?, Francesco Potortì, 2014/09/09