Thread Subject: strings using xlsread

Subject: strings using xlsread

From: Chirackel Yoonus

Date: 22 May, 2009 12:00:03

Message: 1 of 2

Hi,
I have data set with strings and numbers in a excel . I want to split the data using xlsread depends on the strings for example
name year data
yy 1990 34
yy 1991 35
yy 1992 45
ca 1990 23
ca 1991 34
ca 1992 40

Subject: strings using xlsread

From: Nicolas

Date: 29 May, 2009 14:42:01

Message: 2 of 2

I had the same problem last summer.

My solution was to use a macro in Excel to separate lines with "yy" and "ca" (very simple even with Excel). Then you get a sheet or a range with all "yy" data that you can send to xlsread.

Don't forget:Matlab uses Excel as a COM server. So, it is recommended to deal with Excel before Matlab.

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
xlsread Chirackel Yoonus 22 May, 2009 08:04:02
strings Chirackel Yoonus 22 May, 2009 08:04:02
rssFeed for this Thread

Contact us at files@mathworks.com