Questions tagged [mlint]

mlint is a Matlab command that check Matlab code files for possible problems.

mlint is a Matlab command that check Matlab code files for possible problems.

http://www.mathworks.ch/ch/help/matlab/ref/mlint.html

4 questions
11
votes
3 answers

Is there a way to fix all MATLAB mlint messages at once?

I've inherited some code where the author had an aversion to semicolons. Is it possible to fix all the mlint messages in one go (at least all the ones with an automatic fix), rather than having to click each one and press ALT+ENTER?
Richie Cotton
  • 118,240
  • 47
  • 247
  • 360
7
votes
1 answer

Put text into non-active Axes in MATLAB

Most MATLAB plotting commands allow you to specify which axes to act on, for instance plot (x,y) plots in the current axes, but plot(Ax, x, y) will plot in the axes Ax. Similarly, you can label the x- or y- axis of a non-active axes xlabel(Ax,…
Marc
  • 5,315
  • 5
  • 30
  • 36
4
votes
1 answer

'M-Lint cannot decide whether is a variable or a function and assumes it is a function' warning generated for all functions

Background I have recently turned on the M-Lint warning 'M-Lint cannot decide whether ... is a variable or a function and assumes it is a function' as per Is it possible to set matlab to validate reachable functions before running in order to try to…
Richard Tingle
  • 16,906
  • 5
  • 52
  • 77
0
votes
2 answers

mlint syntax checking in vim

I tried to get the MATLAB syntax checking to work in Vim. I used Bundle 'jrestrepo/matlab' and for syntax highlighting and it works fine. But the syntax checking doesn't work. I exported /Applications/MATLAB_R2012b.app/bin/maci64/ to PATH…
mike
  • 791
  • 11
  • 26