| Commands | Purpose | |
| General | Ver | Gets Details of all the toolbox installed with version #'s | 
| Version | MATLAB Version Running | |
| clc | Clear Command Window | |
| clear all | Clear complete workspace | |
| clear variable | Clears the variable specified | |
| Exit | Exits from matlab | |
| Quit | ||
| Ctrl + C | Stop the current execution ( in Command window ) | |
| lookfor | Search for similar commands | |
| Workspace | who | Shows variable names in the currently available workspace | 
| whos | Shows variable names & Details in the currenty available workspace | |
| exist | Check for existence of the variable in the workspace | |
| save filename | Save as filename.mat to disk | |
| Load filename | Load filename.mat from disk | |
| Variables | Global | Declares variable as global | 
| persistent | Defines a persistent variable ( static ) | |
| a = [ 1 , 2 ,3 ] | Create Row Matrix | |
| a = [ 1 2 3 ] | ||
| b = [ 1; 2; 3 ] | Creates Column Matrix | |
| c = [1 2 3 ; 4 5 6 ; 7 8 9] | Creates a 3*3 Matrix | |
| Directory / System | Dir | Lists contents of Current Directory | 
| cd newdir | Change directory newdir | |
| cd .. | Goes to current directorie's parent directory | |
| mkdir newdir | creates a new directory newdir | |
| rmdir newdir | Deletes directory newdir | |
| rmdir ('newdir','s') | Deletes directory newdirand any folders inside recursively | |
| delete newfile | delete's the file newfile | |
| pwd | Displays the current working directory | |
| date | displays the current system date | |
| type newfile | Display the contents of newfile | |
| what | Lists all the matlab files in the current directory | |
| diary | Switches on/off the diary for recording contents of the command window | |
Sunday, June 1, 2014
Matlab Useful Commands
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment