0% found this document useful (0 votes)
24 views29 pages

Simulation Lab - 1 Experiments

Experiment of Simulatuon Lab

Uploaded by

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

Simulation Lab - 1 Experiments

Experiment of Simulatuon Lab

Uploaded by

Siddhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 29
Experiment No. 3 i= Aim = Study of Cu berposition “Theorems usipg MATLAR . aj NSofheare. MATIAR 4 Reguired 5 Theory t= Eb chetes that fp g tineay neteoork con - 4 taining more than one indepen ent ree j A _demencler source the recent current PA any slemert 8s alacbric sum of the current that aor be preduced by each fndependent —- source acHne alare. All the ether tek pendent 7 ~~ } na : = fourcs being revleced by thely Prternal rxecictoncec a Qt. Find the cuyyemt + using Super pod ~ 2 2 Hon sheoyem . F Consider Moov acting alone Apply ky) to meri} = toa- oot, -26T, +207, =o OOo SO 10g. ig - SOT, + 20 T = "100 EXPERIMENT NO:-3 Class :- SE Bateh- — Aim: Study of Superposition theorem using MATLAB. ad £13 Rajdhani EB periment No- 7 ih Aim + MATLAR prregram to find pde zero 4 lore Li of given transfer function — Softoare = MATLAB Lt Reauired Theory :- Trancfes -FancHon ic defined ac He vet's of — Laplace _of ourtped to the laplace of Inp uk L a suming intial to be gern. at Tes) = Cs) ~ Laplace transform of otcpudt i ROT Laplace transform oF Fn pa Example | Tfs)= (st!) Gre) = S*¢ec4o cE (s+3) Got) 82 $29 Fie poles = Valuer of ¢ after cubsterting fh denomi hat _ of hancfer function makes Francfey Function infinite . | zeror- Values of s after cubcituting in irmerctoy of homfey funck” maker +rantey functon __ Zero » |! Poles are ($43) (+4) =0 Zeroc are (St) (640) 20 (s+3)=0 & styso Ctico & F250 | Ge-3 & ga -4 ez-t & g:-2 | Rajdhani | Pole zero plot t teonainary( 9 : pat — cs Soe ey ore fn bse. 4 of o- plane co tHhe stable. @ Zero fe lying hence oyctern hi in RHO of wpctable» plane EXPERIMENT NO.4 SE Class ie Aim:- MATLAB Program to fi ind pole zero plot of given transfer function. Program:- }ynum=[1 3 2]s den=[1_ 7 12]; ‘T=tf(num , den) ; pzmap(T) g Output:- e T= 8243542 82478412 Continuous-time transfer function. . = 2) num=[1 -2); | os] den=[1 2 2]; el T= tf(num , den) | pamap(T) i 02! f o} Output: F -02| i E od 242542 7 al Continuous-time transfer function. | : i an 08 ° S.S.P.M'S College of Engg GOODLUCK ome 1 | B Experiment No- 5 - ~ Aim _3- MATLAB tog enevarte comineots Hme ctynale. ~[oofteacrre 2 MATLAB F ~ Theory 2-@ Step Qtanal *- heres | i= _t = 2 Shep funcHon fs defined cs | vit) = A for tro =O) for bp Act Hic ‘called ac anit step signal @ Rar function :- Ramp function ts defined ac eit) = At fer +30) =O fr tKo Te Aci it fe called as unit Ramp — gignal a S.S.P.M’'S College of Engg 0o0LUck. ome 1 | = 1 fail © Sawtooth Stgnal vt) ‘4 | Z i 7 i x it — a L 4 — x(t) = At fay o cp (Periodic signal) —~ 20 foy t<0 ~ ® E pop pal fgnal te = v(t) a J 0 - oo aa Exponentially E ponenttial ly Lt Increasing fet) Decaying Ce“ ) ee EXPERIMENT NO:- 5 Class :- SE Batch- Ai - MATLAB Program to generate continuous time signals Program:- 1) Step signal =0:0.01:5; for i=0:0.01:5 usheaviside(t) ; end plot(t, u) 2) Ramp Signal :0.01:5; for i=0:0.01:5 r=10*t; end plot(t, 1) 3) Sawtooth Signal :0.01:15; for i=0:0.01:15 y=sawtooth(t) ; t end plot(t, y) 4) Exponential signal end | plot(t, y) La = - i B periment No-6 lair i= Study of Half twoave and Full Wave | Rectifier using MATLAB. — Iboftrare:: MARIARR 20149 , windows F __Requived = S.S.P.M’S College of Engg GOODLUCK, heavy Half coave rectifier :- the halt wave rectifier ts the cireurh i thich converte an AC voltage ol po citive half cycle the diode under postive Blas condi- tion and H conduct current to load wes ictane During negative half cycle the diode is ~~) nea lg cinder weverce bfac cond tion and there | no current flow through the diode. 7 27 at S.S.P.M’S Colle ck ge of Engg goon In} b AL Fall slave Rectifier wectifier Used -}wo clades af which — one conduct the other condeicte te during one half cycle vohich “Wuring othey half cycle of ~~) +h During the postive half cycle of ipped voltage diode D1 become Forward bias d Ac voHage= dnd D2 becorner reversed D2 remadine off the load current Howe = through Di and voltage Kance toil) be equal to the ipput voHroge. ect a rae hence pi conduc — nop _acvoce load Vit ¥ ey Combined EXPERIMENT NO:- 6 a nc Batch- ‘sim:- MATLAB Program to study half wave and full wave rectifier 1) Half wave rectifier ertioveus Ve =o ese : Los Votoge Easuement / T \ = te on ) , ( S.S.P.M’S College of Engg oe a [ a | E < al periment No. F —Taim Simulation of pitferenticrl Egudtione oe é ‘oe 7 ~__|Softoare- MATLAB theory t- Atm of “Hai xperiment isto veprecent given | differ enhal eqtertione toto MATLAB and oly -_1 tthe came I For exarpple The differentia) equation given a | gs Am? + Bote progvam = Syme A B XK = A* yo + BFK He ‘alve (s) Ane = — 8) + ¥B = yA = aA Example ~ — c= Se* +ox + 10 — progva rn) = Syme —| c= ses + o* oe + 10: — Solve Co’) —_—t — An = =i + (35) —] = s — | > \\\\ \ Pe \ Qy = =-5 Co pverting into Mortrhx form ~ J -2 x 1 1 i i 7 OE 2 -S Program - Syme yyy [a b= eg mation t ta Matyi Vx ty ~ 9 ihe ee ff i i | | l EXPERIMENT No:-7 lass = SE ime Simulation of differential equations Program: To solve diffrential equation Axh2+Bx+C=0 % syms ABC x seA'XA2 + BX + C solve(s) % To solve equation 5x2+2x+10=0 % Program:- syms x, S=5*K92 + 2*K +10 solve(s) %To convert equations into matrix x+y-2220 xtys2=1 dy-2=-5 % syms x y 7 (Ab}sequationsToMatrix([x + y-2 *% XY#2821, 2+y-2=2-5], [x, y, Z]) Bateh- Output:- S= A924 B%+C ans = ~(B + (BA2- 4*A*C)4(1/2))/(2*A) -(B- (B*2 - 4*A*C) (1/2) /(2*A) ss =5*x*2 + 2°x+10 ans = = 1/5 + (741/85 -1/5- (74/5 28 26 Rajdhani DATE J | = —d ; m HE periment No. 8 Sains : . 7 : 7 fAtro a Study —Inverting and pon -inverHng im cymplifi ex cing MATLAR « —_fecttemare » MATLAB . Windows % Required heavy + ® Tpverting Aro plifter ts ey | [iff {Ett | r a 25 3 as Rajdhani | ar eT + \ » ; ‘i Se q Ary HiFi ey plot : — | a | T Sj 7 7 7 ee | XS — Ved Neer Non Trvertt ng Arb | rFiey plot +. »—| —| —| y ans — — — a yr EXPERIMENT NO:-8 si SE es Batch- Aim: Study of inverting and non-inverting amplifier using MATLAB. 4) Inverting Amplifier GoPoore:| MATLAB — Required if 4 L [Theory --1MATLAR which stand. orton i. | laborerbory is _o tate of oat be roathe matica oftware» Package _u: ed e tp both academy and indeelry . The rit Purpace cf +hic ‘experiment ig to tinder. f land MATLAB by intreducing basic - features *& MATLAB mu " ee | Ree ean’ -s 26 L {i 4 leme Hop To exp 2 _enponertia | 2 en Hi og (1) =0 of arguement jn cadrtans 4d © -g-—sin 90 m in (90 <_casine oF agement coc (Co) tan Go = Ve He cas in _- inverse sine wesult ip endian: - asin (1) @_acos - inverse of cosine ses - acos Co) oz ka—inpes Ftangent vesult in AS - otin (1) S-S-P.M'S College of Engg coootuck _ DATE | a: fio 83) = bp ede — slat 2 a | JO ax est component al __|_-—__-£g- PAY | Ang - 5 mt | © min + Smallec component fi | commend - min (a) a Ans - 1 = D length :- Length of vector = command = Tepe Ca) Ans - § — @ cize + size af vector = command - size (A) Ans -1% 6 Iie ©.sum - cum of elements in vector a] command = stim (A) Ane = 15 ial 6 mean ~ Average of clement} ri _ [ = n(s) Ans -[it2+3t4ts) - 2 — command = mea = ~-— Maleix Functieb i c 4 O det — deferminan} of square mehr nid el el ao 14 al Po |4 5 ¢ Q@z= [1 0 Ff t + cect / omoutl) = FJ camrand_- det CP) Aps~ - S.S.P.u's College of Engg GoooLuck - Choa J) aaa oO 8t08-= matin er aaere5 having all [Poe ee ro elemenbe &g-—commond - zero (2,2) An lo.o7 Zeros (2°) Loo @_ones Create matix ones. command ~ ones ( >) 437 ~ Ohes (3) eA cetera a @_eye - identity matvix cormmond - eye (2,2) Anc- [1 0 ol - eve ( a} {a1 0 07 Ans - [0 1 0° oor SS i s S.S.P.M’S College of Engg oe f oumatiaay 7 I@ wank = yank, “of the “marti [ Bp command = wank (p) Ans - § LC 4 I@ tov - fy verse of cg E [© inv = ns po client eel nal command = ipy (Pp) Arns_- iz il @_addition :- F ral eg. P+Q= fo a] L FJ 5 Soop V a | L-#__8 lo _| L @ Subcyacon +. ef al J eg. Poa = | 5 8 - sauces L ©1001 Hiplicatfon : t = LATHFOXIF3RO 1KIF2KOFAAO IMIFARIFSHR I PRQ =laxitsxs+Exo 4x1 tsxotexo SRE PCKITEK | FXIERAFQKO FAITEMEIAG FAIFRAITIAI EXPERIMENT NO:-1 Bateh- 152 i Cha TLAB Program to study built in funetions and matrix operations, ine MO Output:- ans= 5 prog ans= 7.3891 0 5) sat 1 etl 1.5708 s log(t) jel i cos) 5 © asin) a 1s ‘As{12345) 3 may) 7. min(A) <7 | tenga) 2 site(a) oe 2 ee sua) 22 mean) ee | P23 456789) ans= 3 1 6 U8 101003) _—] Pag 15 7 24 jpg ans = Pig. : 00 eg 0 0 ans = 1 a 1 - 7 1 ans = a 0 a ok 0 A E periment No 7 [Aim_i- Te ctudy mesh and nodal} analysts using “MATIAB » oftware» MATAR Requibred Problem:- Merb Analyele t- co¢ yy, rst T THOT YY T } i mos | Etnd current +t, g Ta From the netroor Anply ing kL to_mech 4 (peor, ~ SOT, SO Fo = - SO Sco dt cor = -sO n Applying kvi to mech 2 got, -9fT, - sot, 20 eo CO eee = +30 Q T= 01885 A -0,80F# s_ ose “Hhe cive ~Bpplying ket to A Uitter T, =o a Sy ees 7 200 | co se | Mfiis 1 4 2) = 60 4 50 a (eso sO cy) ao 2008 i 2 Vi foee) 2 hae ve - 0: 085 [ Neo on i - classi Batch:- ‘im Tostudy mesh and nodal analysis using MATLAB 4) Mesh Analysis a =) ‘Digtayt SenesRLC Sronch Cent revert Sea LP — Sone ra Poet | PEPE eee eet 2)Nodal Analysis SesR.C Orc Shins RAC Banh Sy Stenson ‘Senes RLC Brn cess - ‘ope maven

You might also like