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:
xlsread

Subject: xlsread

From: James

Date: 19 Nov, 2010 02:02:04

Message: 1 of 3

I was wondering if you can user input to xlsread.

For example:

filename = input('Enter the Excel file: ','s');
excelfile = xlsread(filename);

This doesn't work, but I'm wondering if there is actually a way to do that without assuming you already know the file to read?

Subject: xlsread

From: ImageAnalyst

Date: 19 Nov, 2010 03:20:04

Message: 2 of 3

[baseFileName, folder] = uigetfile('*.xl*', 'Specify an Excel file');
fullFileName = fullfile(folder, baseFileName);
[num txt raw] = xlsread(fullFileName );

Subject: xlsread

From: Paul Hanson

Date: 19 Nov, 2010 19:42:03

Message: 3 of 3

That is FABULOUS!

Paul
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <91fe13e7-8cb1-4ebc-b6ff-4fd0dc816b3d@e26g2000vbz.googlegroups.com>...
> [baseFileName, folder] = uigetfile('*.xl*', 'Specify an Excel file');
> fullFileName = fullfile(folder, baseFileName);
> [num txt raw] = xlsread(fullFileName );

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