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: problem with load
Replies: 2   Last Post: Jul 31, 1996 6:21 AM

Advanced Search

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

Posts: 20
Registered: 12/7/04
Re: problem with load
Posted: Jul 31, 1996 6:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Bhaskar Thiagarajan <bhaskart@engin.umich.edu> wrote:
>
> The load statement doesn't seem to work with string variables :-(


[snip]
> file=['c:\bwlib\src\ufftest\' text num '.dat']
> if (exist(file)==2) %check to see if file exists
> load file;
> end;

[snip]

The load function will work with string variables if you use brackets:

load(file);

would work in this case.

--------------------------------------------------------------------
Matthew Purver Ultra Electronics Ltd., Noise & Vibration Systems
Phone: +44 (0)1223 426699 Fax: 426696 Email: matt@ultranvs.co.uk





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

[Privacy Policy] [Terms of Use]

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