Watch this Author's files
I got it, just add the lines below to your matlab.vim
" Execute file being edited with F5:
map <buffer> <F5> :w<CR>:!matlab -nodesktop -nosplash -r "try, run %, pause, catch, end, quit" <CR> <CR>
Great plugin! Its just the thing I was looking for.
Is there a way to run the .m scripts directly from vim?