0% found this document useful (0 votes)
10 views7 pages

Introduction to MATLAB for Engineers

The document presents an overview of MATLAB, a high-level programming language widely used by engineers and scientists for various applications including data analysis, algorithm development, and system design. It highlights MATLAB's features such as its integrated graphics, extensive toolboxes, and compatibility with other programming languages, making it a versatile tool for scientific computing. Additionally, the document includes exercises demonstrating the application of MATLAB in solving mathematical problems.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views7 pages

Introduction to MATLAB for Engineers

The document presents an overview of MATLAB, a high-level programming language widely used by engineers and scientists for various applications including data analysis, algorithm development, and system design. It highlights MATLAB's features such as its integrated graphics, extensive toolboxes, and compatibility with other programming languages, making it a versatile tool for scientific computing. Additionally, the document includes exercises demonstrating the application of MATLAB in solving mathematical problems.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Report

TP

Formation:
Made by :
LPER
AIT IJJA Abdelilah (2018/2019)
General Introduction
Presentation of MATLAB

All over the world, millions of engineers and scientists use MATLAB to
analyze and design the systems and products of tomorrow. MATLAB is present in systems
active safety automobiles, spacecraft, medical monitoring devices,
smart electrical grids and LTE mobile networks. It is used in the fields of
machine learning, signal processing, computer vision, communications,
computational finance, controller design, robotics, and much more.

Mathematics, graphics, programming


The MATLAB platform is optimized for solving scientific and technical problems.
MATLAB language, based on matrices, is the most natural way in the world to express the
computational mathematics. The integrated graphs allow for easy visualization of the
data in order to extract information. Thanks to the vast library of toolboxes
predefined, you can start directly with the essential algorithms for your field.
The office environment encourages experimentation, exploration, and discovery. The tools and the
MATLAB features are all rigorously tested. They are designed to work
jointly.

Adoption, integration, deployment


MATLAB supports your ideas beyond the office. You can analyze sets of
larger data and extend your use to clusters and clouds. The MATLAB code can
to be integrated into other languages, allowing you to deploy algorithms and applications
within web, enterprise, and production systems.
Main features

High-level language for scientific and technical computing.


Office environment designed for iterative exploration, design, and problem-solving
problems.
Graphics intended for data visualization and tools designed to create plots
customized.
Dedicated applications for curve fitting, data classification, data analysis,
signals and many other specialized tasks.
Additional toolboxes designed to meet many specific needs.
engineers and scientists.
Tools for creating applications with a customized user interface.
Interfaces to C/C++, Java, .NET, Python, SQL, Hadoop, and Microsoft Excel.
Royalty-free deployment options for sharing MATLAB programs with
end users.

Why choose MATLAB?


MATLAB is the most accessible and productive software designed for engineers and
scientists. For your data analysis tasks, algorithm development, and creation
By providing models, MATLAB gives you an environment that encourages exploration and discovery.
MATLAB associates a high-level language with a sophisticated desktop environment for workflows.
iterative scientific and technical work.
But
Understanding the basics of MATLAB
The version of MATLAB being used is:
MATLAB R2017b
Exercise 1:

Exercise 2 :
Exercise 3: Exercise 4:
u = 11 - 7i;
u=[1,-1,2]'; v=-1+3i;
v=[10,-1,3]'; Mu=norm(u);
w=[5,-1,4]; Mv=norm(v);
A1=3*u; A1=abs(u);
A2=norm(u,2); A2=conj(u);
A3=real(u);
B1=((2*u)-v+(5*w)); A4 = imag(u);
B2=norm(B1,1); B1=abs(v);
C1=w-(4*v); B2=conj(v);
C2=norm(C1,inf); B3=real(v);
% alpha=cos(v:w); B4=imag(v);
P1uv=u*B2;
P1uv = v * A2;
>> ex3 SRuv=real(u^3+v^2)
SIuv=imag(u^3+v^2)
A1 =

3 ans =

-3 13.0384

6 ans =

A2 = 3.1623

2.4495 ans =

B1 = -32.0000 -26.0000i

17 -13 12 ans =

24 -6 19 -32.0000 + 26.0000i

26 -4 21 ans =

B2 = -294

67 ans =

C1 = -2204
>> exercise 4
-35 -41 -36

9 3 8 SRuv =

-7 -13 -8 -294

C2 = SIuv =

112 -2204
Exercise 5: Exercise 6:
A=[1,2,3 ; -5,3,1 ; -10,0,3]; A1=[1 -1 7;-4 2 11;8 0 3];
B=[1,-2,5;6,1,-1;1,0,-2]; B1=[3 -2 -1;7 8 6;5 1 3];
C=[10,-5;3,1]; A=3*A
I3=[1,0,0;0,1,0;0,0,1]; B = A .* B
M1=A*B; C=A*B
M2=B*A; D = A / B
M3=A*B'; E=cos(A)
D=I3-B*B'; F=cos(B)
det(A); G=exp(B)
det(B);
det(C);
E=A*A';
inv(A);
inv(B);
inv(C);
inv(D);
inv(E);
VP = eigen(E)

Exercise 7: Exercise 8:
A=[1,2,3 ; -5,3,1 ; -10,0,3]; A=[1 -1 7;-4 2 11;8 0 3]
B=[1,-2,5;6,1,-1;1,0,-2]; v=[1 2 4 7]
C=[10,-5;3,1]; disp('A(v)=A(v)+0.01')
I3=[1,0,0;0,1,0;0,0,1]; A(v)=A(v)+0.01
M1=A*B; the function increments the elements
M2=B*A; from the matrix A indicated by the vector
M3 = A * B'; v')
D=I3-B*B'; B=[3 -2 -1;7 8 6;5 1 3]
det(A); v=[1 2 4 7]
det(B); disp('B(v)=abs(B(v))')
det(C); B(v)=abs(B(v))
E = A * A'; display('the function makes the absolute value'
inv(A); for the elements of the matrix A
inv(B); indicated by the vector v')
inv(C);
inv(D);
inv(E);
VP = eigen(E)

Exercise 9: Exercise 10:


v=[1:11];
v=2;
n=[0:10];
A=linspace (-5,5,11) u = v^n
B=linspace(-500, 500, 1001) A=input ('give A=')
c=linspace(0,pi,10) n=0;
while 2^n < A
n=n+1;
end
disp(n)
fill the matrix h
fori=linspace(1,3,3);
j=linspace(1,3,3);
h(i,j) = 1./(i+j-1);
end

You might also like