MATLAB: How i can open matlab file from terminal to edit it

gpu

I run my file on gpu and when, write "type file name" command it open the file but no editing so, how can i edit the file?

Best Answer

You can open an M-file in Matlab by typing
edit File.m
If it is not in the current path add the path name also. Alternatively you can click on the "Open" button in the menu. A double click on the M-file opens it in the editor also.
But see my questions for clarifications in the comment above.