matlab editor is a great debugger, however, emacs is my editor. This is my problem. There is an emacs like mode in the matlab editor. However, I usually use emacs to edit m files. To make the file exchange smooth, the tab should be expand to spaces. Using file local variable, I put the followings at each m file's end.
%% Local Variables: ** %% mode:Octave ** %% indent-tabs-mode: nil ** %% End: **
There is a matlab mode from mathworks. Full install seems a bit cumbersome for me, so I installed only matlab mode.
    cvs -d:pserver:anonymous@matlab-emacs.cvs.sourceforge.net:/cvsroot/matlab-emacs login
          
      
    cvs -z3 -d:pserver:anonymous@matlab-emacs.cvs.sourceforge.net:/cvsroot/matlab-emacs co -P matlab-emacs
          
     
  (setq load-path
        (append load-path
                (list
                 "C:/users/userhome/lib/site-lisp/matlab-emacs"
                 )))
  (autoload 'matlab-mode "matlab" "Enter MATLAB mode." t)
  (setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist))
  (autoload 'matlab-shell "matlab" "Interactive MATLAB mode." t)