I have a problem running my main function in MATLAB (the main program and calls other functions). Trying to run it gives me the error "??? Undefined function or variable 'max_x_address'". But, as you can see below, it has been declared as a global. This is really bothering me, so any help would be appreciated. (Do I have to modify my pathdef.m file? That is what the MATLAB troubleshooting says, but I followed some of the steps and it didn't help.)
The following is a skeleton of the program:
function Adaptive_Information
global HUBS, max_x_address, max_y_address;
.
.
max_x_address = 10;
.
.
end