Import data in IDL from other source [message #85917] |
Wed, 18 September 2013 04:25  |
fd_luni
Messages: 66 Registered: January 2013
|
Member |
|
|
Hi
I was wondering how can I import data from a Microsoft word document into IDL in a mtrix form?
I.e. I want to create a matrix whose elements are from a word document. I have the elements of matrix A in a word document (1 column, 200 elements) and I want to import them in IDL.
Many Thanks
Mar
|
|
|
Re: Import data in IDL from other source [message #85923 is a reply to message #85917] |
Wed, 18 September 2013 07:15  |
Andy Sayer
Messages: 127 Registered: February 2009
|
Senior Member |
|
|
If this is a one-off thing, I would copy-paste to e.g. Excel and save as comma-separated text. Then you can read that (openr, readf, etc): http://www.exelisvis.com/docs/READ.html
If this is something you'll need to do a lot (i.e. inefficient to manually convert to CSV each time), I am not sure, guess you would need to find out the MS Word file format somehow?
Andy
On Wednesday, September 18, 2013 7:25:00 AM UTC-4, fd_...@mail.com wrote:
> Hi
>
>
>
> I was wondering how can I import data from a Microsoft word document into IDL in a mtrix form?
>
>
>
> I.e. I want to create a matrix whose elements are from a word document. I have the elements of matrix A in a word document (1 column, 200 elements) and I want to import them in IDL.
>
>
>
> Many Thanks
>
> Mar
|
|
|