Graphics Reference
In-Depth Information
Here are some examples:
>> [rand, rand(1), randn, randn(1)]
ans =
0.9501 0.2311 -0.4326 -1.6656
>> [rand(2), randn(2)]
ans =
0.6068 0.8913 0.1253 -1.1465
0.4860 0.7621 0.2877 1.1909
>> [rand(2,3), randn(2,3)]
years =
0.3529 0.0099 0.2028 -0.1364 1.0668-0.0956
0.8132 389 0.1987 0.1139 0.0593-0.8323
A.9 Complex Numbers
Work in the field of complex numbers is implemented in MATLAB. MATLAB of course follows the convention of using
an i or a j to represent the imaginary number √- 1 , which is the key value in all the analysis of complex variables. Over
the complex numbers can be applied the usual operators, as well as some specific functions. Both the real part and
the imaginary part of the complex numbers can be any real number or symbolic constants, and operations with them,
which are in exact mode, unless involved in any closer decimal, in which case it returns an approximation of the
result. As the imaginary unit is represented by the symbols i or j , the complex numbers are expressed in the form a+bi
or a+bj . It is worth noting the fact that don't need the product (the asterisk) symbol before the imaginary unit:
>> (1-5i)*(1-i)/(-1+2i)
ans =
-1.6000 + 2.8000i
>> format rat
>> (1-5i)*(1-i)/(-1+2i)
Ans =
-8/5 + 14/5i
A.10 Functions with Complex Arguments
Working with complex variables is very important in mathematical analysis and their applications in major branches
of engineering. MATLAB implements not only the possibility of operating with complex numbers, but it also
incorporates various functions for complex variables. Below is a summary of the most important.
 
Search WWH ::




Custom Search