01A' Introduction to MatLAB' Plots - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

01A' Introduction to MatLAB' Plots

Description:

A and a are different variables * Multiplication of matrices. ... Example : Plot f(t)=-2e-1.2tcos(8t 3) cksi.m xp0=abs(real(p0));yp0=abs(imag(p0) ... – PowerPoint PPT presentation

Number of Views:24
Avg rating:3.0/5.0
Slides: 6
Provided by: karag
Category:

less

Transcript and Presenter's Notes

Title: 01A' Introduction to MatLAB' Plots


1
01A. Introduction to MatLAB. Plots
clcclearlamda2pi/3dxlamda/20xson5lamda x
0dxxson fsin(3x)./(5x) plot(x,f)
A and a are different variables
Multiplication of matrices .
Element to element multiplication
xdxdxlamda
help size max min
2
01B. Time step, settling time
A Amplitude sDamping ? Frequency f Phase

f01/T0
3
Example Plot f(t)-2e-1.2tcos(8t3)
cksi.m xp0abs(real(p0))yp0abs(imag(p0)) w0sq
rt(xp02yp02)ksixp0/w0 t02pi/w0dtt0/20ts
ont0/ksi
clcclear p0-1.28icksi t0dttson f-2exp
(-1.2t).cos(8t3) plot(t,f)
Example Plot f(t) 4e-6t
clcclear tc1/6dttc/pitson2pitc t0dtts
on f4exp(-6t)plot(t,f)
4
Example Plot f(x)-3e-0.8xcos(2.4x1.3)7e-1.4x
sin(3.7x-2.1)4e-2x
clcclearx00.07947.854 f-3exp(-0.8x).cos(
2.4x1.3)7exp(-1.4x).sin(3.7x-2.1)-4exp(-2
x) plot(x,f)
5
01C. Roots of polynomials
clcclear a2,0,-7,100 roots(a)
-4.0000 2.0000 2.9155i 2.0000
- 2.9155i
01D. Solution of linear algebraic set of
equations
Example Solve x and y from the following
equations.
x2y-27 53y10x
clcclear a1,-2 10,-3 b-275 xinv(a)b
x 5.3529 y 16.1765
Write a Comment
User Comments (0)
About PowerShow.com