Escolar Documentos
Profissional Documentos
Cultura Documentos
MATLAB
MATLAB (MATrix LABoratory) is an interactive
software system for numerical computations and
graphics. As the name suggests, MATLAB is
especially designed for matrix computations: solving
systems of linear equations, performing matrix
transformations, factoring matrices, and so forth. In
addition, it has a variety of graphical capabilities,
and can be extended through programs written in its
own programming language.
MATLAB is supported on Unix, Macintosh, and Windows
environments.
MATLAB Advantages
If you want to remove a variable from the MATLAB you can use the
clear command, e.g.,
>> clear width
removes width from the workspace. If you want to get rid of all the
variables in your workspace just type:
>> clear
SUPPRESSION OF OUTPUT
Up till now you have always seen the results of each command on the
screen. This is often not required or even desirable; the output might
clutter up the screen, or be long and take a long time to print.
MATLAB suppresses the output of a command if you finish the
command with a semi-colon - ; .
Enter:
>> height = 5
You will notice that MATLAB prints out the result of this command after
you press enter:
height =
5
Now enter:
>> height = 7;
MATLAB will not print the result of the command. With
scalar variables this doesnt make much difference -
but it can make a great deal of difference when dealing
with large lists of numbers.