Beruflich Dokumente
Kultur Dokumente
MATLAB
MATrix LABoratory
1970s
DR. CLEVE MOLER
University of New Mexico
COMMERCIALIZATION
1980s
MathWorks
MATLAB
High performance numerical computation
Visualization
Interactive environment
MATLAB
Graphics
Computations
External Interface
MATLAB Toolboxes
Signal Processing
Statistics
Control Systems
Neural Networks
Communications
Image Processing
Optimization
MATLAB Powerful
Software
Symbolic Algebra
(x + y)^2 = x^2 + 2xy +y^2
MATLAB Windows
Main Window
Command Window
For writing
commands
Shows the simulation
results
Workspace
Stores Variables
Command History
Shows history of
commands used
Editor Window
M-File
Coding/Program
Model Window(Simulink)
Model file
Circuit
MATLAB
M-File Programming
Simulink
M-file programming
Basic Operations
1. X = 2^3/(4)
X= 2
2. X = 2^3/(4) ;
3. exp(3)
ans = 20.0855
4. log(2)
ans = 0.6931
Basic Operations
5. sin(pi/6)
ans = 0.5
6. sind(30)
ans = 0.5
7. x = (1+3i) / (1-3i)
x = -0.8 + 0.6i
x = [1 2 3 4 5];
y = [1 2 3 4 5];
z = x.*y
z = 1 4 9 16 25
6. x = [1 2 3 4 5];
x
ans = 1
2
3
4
5
x = linspace(1,10,10)
x = 1 2 3 4 5 6 7 8 9 10
12. x = linspace(2,10,5)
x = 2 4 6 8 10
theta = linspace(0,360,100);
X = 2*cosd(theta);
Y = 2*sind(theta);
plot(X,Y);
xlabel(x-axis);
ylabel(y-axis);
title(Circle);
theta = linspace(0,360,50);
x = sind(theta);
stem(x);
x = linspace(1,10,5);
bar(x)
Simulink
Simulink Library Browser
Toolboxes
Building Blocks
Function generation
Frequency = 50 Hz
Frequency(rad/sec)=2*pi*f
Sine Wave
Derivative of a Function
Sine Wave
Cosine Wave
(Derivative of Sine Wave)
Sine Wave
Output = 1 for
Positive region
Output = -1 for
Negative region
Voltage
measurement
block
AC Supply
Resistive Load
Supply Voltage
Waveform
Load Current
Waveform
Thank You