Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Discussion Groups

Discussion Groups | Matlab DSP | HOW To Import Data from Excel to matlab

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

HOW To Import Data from Excel to matlab - BALAJI RAMAN - Mar 16 18:25:00 2004



Hello everybody,

This is my first mail to the group.

I need some help on importing data from excel..

I am not that good at matlab..

I have certain data sets in excel and i would like to plot the x and
y values..

Is there some way that i can access excel files through matlab..

These data sets are huge.

Thanks In advance

Balaji





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: HOW To Import Data from Excel to matlab - Juan I. Arvelo, Jr., Ph.D. - Mar 16 21:14:00 2004

I usually export the Excel spreadsheet as
space-delimited text document and import the created
file into Matlab using the "load" command. Of course,
I'm making it sound easier than it really is.

If the exported text file is more complicated than
just two simple columns, then you may have to read the
data line-by-line.

First you open the file using:

fid = fopen('myfile.txt');

then read the data with the "fscanf" command.

Finally, you close the file:

fclose(fid);

Again, I'm making it easier than it really is. --- BALAJI RAMAN <>
wrote:
> Hello everybody,
>
> This is my first mail to the group.
>
> I need some help on importing data from excel..
>
> I am not that good at matlab..
>
> I have certain data sets in excel and i would like
> to plot the x and
> y values..
>
> Is there some way that i can access excel files
> through matlab..
>
> These data sets are huge.
>
> Thanks In advance
>
> Balaji
=====
Juan I. Arvelo, Jr., Ph.D.
Johns Hopkins University
11100 Johns Hopkins Rd.
Laurel, MD 20723
240.228.4293

__________________________________
">http://mail.yahoo.com





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: HOW To Import Data from Excel to matlab - Rabia Zeynep Sarica - Mar 17 1:55:00 2004

You may try to use "xlsread" Matlab command as well.
 
Rabia"Juan I. Arvelo, Jr., Ph.D." <j...@yahoo.com> wrote:
I usually export the Excel spreadsheet as
space-delimited text document and import the created
file into Matlab using the "load" command. Of course,
I'm making it sound easier than it really is.

If the exported text file is more complicated than
just two simple columns, then you may have to read the
data line-by-line.

First you open the file using:

fid = fopen('myfile.txt');

then read the data with the "fscanf" command.

Finally, you close the file:

fclose(fid);

Again, I'm making it easier than it really is.--- BALAJI RAMAN <b...@yahoo.co.in>
wrote:
> Hello everybody,
>
> This is my first mail to the group.
>
> I need some help on importing data from excel..
>
> I am not that good at matlab..
>
> I have certain data sets in excel and i would like
> to plot the x and
> y values..
>
> Is there some way that i can access excel files
> through matlab..
>
> These data sets are huge.
>
> Thanks In advance
>
> Balaji
=====
Juan I. Arvelo, Jr., Ph.D.
Johns Hopkins University
11100 Johns Hopkins Rd.
Laurel, MD 20723
240.228.4293

__________________________________
/">http://mail.yahoo.com



_____________________________________
/groups.php3


" target="_blank">Yahoo! Mail - More reliable, more storage, less spam



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: HOW To Import Data from Excel to matlab - Priyank Saxena - Mar 17 3:53:00 2004

better way is to use functions 'xlsread' and 'xlsfinfo'. refer to matlab help
(help xlsread) for details.

--- "Juan I. Arvelo, Jr., Ph.D." <> wrote:
> I usually export the Excel spreadsheet as
> space-delimited text document and import the created
> file into Matlab using the "load" command. Of course,
> I'm making it sound easier than it really is.
>
> If the exported text file is more complicated than
> just two simple columns, then you may have to read the
> data line-by-line.
>
> First you open the file using:
>
> fid = fopen('myfile.txt');
>
> then read the data with the "fscanf" command.
>
> Finally, you close the file:
>
> fclose(fid);
>
> Again, I'm making it easier than it really is. > --- BALAJI RAMAN <>
> wrote:
> > Hello everybody,
> >
> > This is my first mail to the group.
> >
> > I need some help on importing data from excel..
> >
> > I am not that good at matlab..
> >
> > I have certain data sets in excel and i would like
> > to plot the x and
> > y values..
> >
> > Is there some way that i can access excel files
> > through matlab..
> >
> > These data sets are huge.
> >
> > Thanks In advance
> >
> > Balaji
> >
> >
> >
> >
> >
>
> =====
> Juan I. Arvelo, Jr., Ph.D.
> Johns Hopkins University
> 11100 Johns Hopkins Rd.
> Laurel, MD 20723
> 240.228.4293
>
> __________________________________
> ">http://mail.yahoo.com

__________________________________
">http://mail.yahoo.com




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )