Solution: Use the line "%#function my_object" in your code
Added:
> >
Problem: You're trying to compile a MATLAB code, and you get error like:
connect xxx.cs.ubc.ca port 6000: Connection refused.Solution: run "setenv DISPLAY fake_display" before run MATLAB