MATLAB RESOURCES

By Unknown on 8:52 AM

comments (1)

Filed Under:

Matlab resources on the net

By Unknown on 8:44 AM

comments (0)

Filed Under:





 We provide below some pointers to information related to MATLAB.


• The MathWorks Web site: http://www.mathworks.com/


The MathWorks, the makers of MATLAB, maintains an important Web site. Here you can
find information about new products, MATLAB related books, user supplied files and much
more.


• The MATLAB newsgroup: news://saluki-news.siu.edu/comp.soft-sys.matlab/






A useful source of information about MATLAB and good starting point to other Web sites.
• http://www.cse.uiuc.edu/cse301/matlab.html

Getting started with Matlab - 1

By Unknown on 8:17 AM

comments (0)

Filed Under:

The Command window :








You can start MATLAB by double clicking on the MATLAB icon that should be on the desktop
of your computer. This brings up the window called the Command Window. This window
allows a user to enter simple commands. To clear the Command Window type clc and next press
the Enter or Return key. To perform a simple computations type a command and next press the
Enter or Return key. 
For instance,


s = 1 + 2  
s =
     3  
fun = sin(pi/4)  
fun =
    0.7071  
In the second example the trigonometric function sine and the constant are used. In MATLAB
they are named sin and pi, respectively.
Note that the results of these computations are saved in variables whose names are chosen by the
user. If they will be needed during your current MATLAB session, then you can obtain their
values typing their names and pressing the Enter or Return key. For instance,




s  
s =
     3  


Variable name begins with a letter, followed by letters, numbers or underscores. MATLAB
recognizes only the first 31 characters of a variable name.
To change a format of numbers displayed in the Command Window you can use one of the
several formats that are available in MATLAB. The default format is called short (four digits
after the decimal point.) In order to display more digits click on File, select Preferences…, and
next select a format you wish to use. They are listed below the Numeric Format. Next click on
Apply and OK and close the current window. You can also select a new format from within the
Command Window. For instance, the following command




format long  


changes a current format to the format long. To display more digits of the variable fun type
fun  
fun =
   0.70710678118655  


To change a current format to the default one type
format short
fun  
fun =
    0.7071  
To close MATLAB type exit in the Command Window and next press Enter or Return key. A
second way to close your current MATLAB session is to select File in the MATLAB's toolbar
and next click on Exit MATLAB option. All unsaved information residing in the MATLAB
Workspace will be lost.