Thread Subject: Importing data from text files

Subject: Importing data from text files

From: Charles

Date: 25 Apr, 2009 20:59:02

Message: 1 of 2

I have a text file that I need to pull information out of, that is not in a friendly format for matlab. An example can be seen below:

12332 10422 43234


This is a test of the ability of matlab to upload data

on 1 3452u set3
off 2 2345x set2
on 1 3452y set1

This is a second line in the matlab test


First if there is some form on a matrix at the top of the text file matlab will not pull the rest of the data. How can I get matlab to pull all the lines into matlab?

Thanks

Subject: Importing data from text files

From: Gustavo Morales

Date: 26 Apr, 2009 02:44:02

Message: 2 of 2

Charles:

Have you already tried with "textread" and "textscan"? See the help for these functions...

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
textread Sprinceana 10 Sep, 2009 10:24:04
textscan Sprinceana 10 Sep, 2009 10:24:04
rssFeed for this Thread

Contact us at files@mathworks.com