I use `whereis matlab` and find:
`/usr/local/bin/matlab`
, which is a very long bash file. 

How can I find where matlab is installed, I mean, its installed folder. 

EDIT:

I used the following method:
open matlab and use edit svds.m to open the svds.m file and the editor shows the folder:)