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: Matlab 2012b sees "squeeze" as a variable!!
Replies: 2   Last Post: Apr 4, 2013 11:40 AM

Advanced Search

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

Posts: 77
Registered: 6/6/12
Matlab 2012b sees "squeeze" as a variable!!
Posted: Apr 4, 2013 8:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi!
I'm doing a thing that I've done lots of times with matlab but now, for the first time, I'm getting an error.
That happened with Matlab 2012b, with older versions, which I do not have anymore, this line used to work.
I simplified my code a lot, to exclude typos, but I get the error anyway.
Here's the problematic line:

imm = squeeze(data.data(:,100,:));

Already the code analyzer tells me that "squeeze might be used before it is defined". Which of course does not apply to a function.
If I run the code I get:
"At compilation, "squeeze" was determined to be a variable and this variable is uninitialized. "squeeze" is also a function name and previous versions of MATLAB would have called the function. However, MATLAB 7 forbids the use of the same name in the same context as both a function and a variable".

Now... Why on earth does Matlab 2012b think that "squeeze" is a variable, written in this way???



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.