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:
load str and num combined text file

Subject: load str and num combined text file

From: Wendy

Date: 5 Jan, 2010 11:35:06

Message: 1 of 3

Dear all,

Just wondering if Matlab can read in a string and number combined text file in a matrix form. How should we tackle this problem? My sample file format is attached. Any suggestion would be appreciated. Thank you very much.

ADIPOQ-globular ADIPOR 1/2 14.4
ADIPOQ-full length ADIPOR 1/2 49.1
ANGPTL1 TEK 7.5


Wendy

Subject: load str and num combined text file

From: us

Date: 5 Jan, 2010 12:50:20

Message: 2 of 3

"Wendy " <wlq121@gmail.com> wrote in message <hhv859$3ue$1@fred.mathworks.com>...
> Dear all,
>
> Just wondering if Matlab can read in a string and number combined text file in a matrix form. How should we tackle this problem? My sample file format is attached. Any suggestion would be appreciated. Thank you very much.
>
> ADIPOQ-globular ADIPOR 1/2 14.4
> ADIPOQ-full length ADIPOR 1/2 49.1
> ANGPTL1 TEK 7.5
>
>
> Wendy

a hint:

     help textread;
     help textscan;

us

Subject: load str and num combined text file

From: Wendy

Date: 5 Jan, 2010 13:19:02

Message: 3 of 3

Thank you, us.
Wendy

"us " <us@neurol.unizh.ch> wrote in message <hhvcic$qfh$1@fred.mathworks.com>...
> "Wendy " <wlq121@gmail.com> wrote in message <hhv859$3ue$1@fred.mathworks.com>...
> > Dear all,
> >
> > Just wondering if Matlab can read in a string and number combined text file in a matrix form. How should we tackle this problem? My sample file format is attached. Any suggestion would be appreciated. Thank you very much.
> >
> > ADIPOQ-globular ADIPOR 1/2 14.4
> > ADIPOQ-full length ADIPOR 1/2 49.1
> > ANGPTL1 TEK 7.5
> >
> >
> > Wendy
>
> a hint:
>
> help textread;
> help textscan;
>
> us

Tags for 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