Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Multiple files into Matlab from Excel
Replies: 15   Last Post: May 9, 2014 2:06 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
dpb

Posts: 8,183
Registered: 6/7/07
Re: Multiple files into Matlab from Excel
Posted: May 3, 2014 9:22 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 5/3/2014 2:41 AM, Michelle wrote:
...

> I started with this but does not work.
...
> source_dir='/Users/MichelleTommosgard/Desktop/test';
> source_files=dir(fullfile(source_dir,'*xlsx'));

...

"Does not work" is _NEVER_ sufficient explanation of a problem...what,
_specifically_, happened and what error messages did you get?

That said, there's at least one clearly obvious problem in your wildcard
filename expression above--

source_files=dir(fullfile(source_dir,'*.xlsx'));

You were missing the "." separating the "*" wildcard base name from the
extension so undoubtedly you got nothing from the directory search...

--





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.