0% found this document useful (0 votes)
10 views

Matlab

Uploaded by

Marouane Al Asri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Matlab

Uploaded by

Marouane Al Asri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Vectors, Arrays and Matrixes

Assign a value to a variable (observe the effect of the semi colon):

Creating a row vector of size (14) Creating a column vector of size (41)

Creating an array of size (19) using the semicolon sign (:)

Creating an array of size (19) using the for loop

Creating a matrix of size (33) Creating a matrix of size (33) using 2 for loops
Basic Matrix Operations:
Graphic Utilities
Complex Numbers

Defining a complex number:

Conjugate Absolute Value Angle in Radians Angle in Degrees


Defining a Polynom Roots of a Polynom

P( x) = x 3 + 2 x 2 + 3 x + 4

clc: To clear the command window


clear all: To clear all the variables in memory

Mean Value, Variance and Standard Deviation of a Set of Data


round floor ceil
Round towards nearest integer. Round towards minus infinity. Round towards plus infinity.

You might also like