The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Matlab weirdness
Replies: 2   Last Post: Feb 22, 2012 1:16 PM

Advanced Search

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

Posts: 123
Registered: 12/7/04
Re: Matlab weirdness
Posted: Feb 22, 2012 1:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Steven_Lord" <> wrote in message <ji3a4d$psd$>...
> "Jonathan " <> wrote in message
> news:ji366o$cja$

> > I have a few questions related to running Matlab on two different
> > computers. I recently installed Matlab on my new machine with Matlab
> > R2011b, 64-bit (win64); the other machine has R2011a. Install occurred
> > without a hitch.
> >
> > The first relates to use of the "waitbar" function in a piece of code. On
> > my machine (2011b), a warning is issued when the waitbar option is
> > executed i.e."Warning: axes YTickLabels has been renamed YTickLabel for
> > consistency with all other
> > mode/value property pairs, whose root names are singular, not plural. In
> > Waitbar at 37. On the other machine this message does not show. Is there a
> > way to suppress this message?

> Line 37 of the waitbar.m included in release R2011b is a blank line between
> two comment lines. That plus the case of the word "Waitbar" in the error
> suggests that your new machine has a different version of Waitbar.m that you
> downloaded from somewhere on the MATLAB path. To check this, use the WHICH
> function and rename or move off your path any such function that is not
> under $MATLABROOT/toolbox/matlab/uitools.

> > The second issue is I have tried running the full code on the two
> > machines. On my machine (R2011b) the code runs and then hangs. On the
> > other machine (R2011a) it executes fine, with no warnings/messages. Any
> > reason why this would occur?

> If the directory containing the Waitbar.m that caused the first problem
> contains other functions with the same name as functions that ship with
> MATLAB, those could cause problems up to and including MATLAB getting stuck
> in an endless loop.

> > Third, why does this code not work on my new machine, but works on the old
> > machine...
> > load C:\DATA\DOGAMI_projects\FEMA - CLATSOP
> > CTY\temp\buoys\46089_Tillamook\tm_46089_pst_H0.mat;

> It shouldn't work on either. That line of code is equivalent to:
> load('C:\DATA\DOGAMI_projects\FEMA', '-', 'CLATSOP',
> 'CTY\temp\buoys\46089_Tillamook\tm_46089_pst_H0.mat');
> Note that you're calling LOAD with four input arguments; each input argument
> begins or ends at the space in your path name.
> I would also recommend calling LOAD with an output argument to avoid
> "poofing", as has been discussed on this newsgroup often.

> > buoy2=tm_46089;
> > Error using load
> > Unknown command option.
> >
> > whereas this works fine...
> > cd ('C:\DATA\DOGAMI_projects\FEMA - CLATSOP
> > CTY\temp\buoys\46089_Tillamook')
> > data = load('tm_46089_pst_H0.mat'); buoy2=data.tm_46089;
> >
> > This is all a little puzzling. Should I try reinstalling Matlab?

> The first and third issues are (mostly) resolved -- I'm not entirely certain
> why your first section of code for the third problem ran on the old machine.
> If my suspicion is correct, the solution for the first issue may resolve the
> second issue as well.
> --
> Steve Lord
> To contact Technical Support use the Contact Us link on

Steve, thank you. Problem solved. I had an old antiquated version of waitbar in one of my code folders. This resolved the first two problems. I now also better understand the issue with directory paths.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.