The MATLAB Basic Operation

MATLAB MATLAB stands for matrix laboratory is a combination of two words, meaning the plant matrix (Matrix Laboratory).

MATLAB is published by the American mathworks company's main face of scientific computing, visualization and high-tech computing environment of interactive programming. It numerical analysis, matrix computation and many other powerful features, scientific data visualization, and modeling and simulation of nonlinear dynamic systems such as integrated in the Windows environment in an easy to use, for scientific research, engineering design, and the need for effective numerical calculation of numerous scientific field provides a comprehensive solution, and to a large extent from the traditional non-interactive programming languages (such as C, Fortran) edit mode, on behalf of the current international advanced level of scientific computing software.
MATLAB and Mathematica, Maple and known as the three mathematical software. It is second to none in terms of numerical mathematics class technology application software. MATLAB can perform matrix operations, functions and data rendering, algorithm, create a user interface, linker other programming languages, mainly used in engineering calculations, control design, signal processing and communications, image processing, signal detection, financial modeling design and analysis and other fields.
MATLAB basic unit of data is a matrix, its expression and instruction in mathematics, engineering commonly used form is very similar, so use MATLAB to solving problems than with C, FORTRAN and other languages accomplish the same thing much more simple, and also MATLAB absorb the advantages of software such as Maple, MATLAB makes it a powerful mathematical software. In the new version also adds support for C, FORTRAN, C ++, JAVA's.

In conventional usage as Comparative C were mixed and Python
e.g.
has in C fprintf('%d',x)
have the pythoninput('')

 if x
     ...
  else
    ...
  end

However, alignment of the program does not affect
MATLAB added to the matrix operations
, such as a statement of a matrix
a = [1 2 3; 4
Here Insert Picture Description
5 6; 7 8 9] Note% or
clear the screen of clc
available disp Simple output some data () <also available full name display ()>

For example, a = 10; disp (10)

Inequality = ~
IF the while python and basically the same but to add at the end end *
for different loop
Here Insert Picture Description
three quantities are starting value for the end value increment Do not forget to end
function
Here Insert Picture Description

Published 27 original articles · won praise 5 · Views 654

Guess you like

Origin blog.csdn.net/qq_44620773/article/details/103970309
Recommended