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???