Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

MATLAB Assignment: Capacitor Discharge Circuit Simulation - Prof. M. Elseifi, Study notes of Civil Engineering

Matlab code and instructions for assignment 6 of a capacitor discharge circuit course. It includes calculations for capacitor voltage and plotting the results.

Typology: Study notes

2010/2011

Uploaded on 12/28/2011

tobennaofordeme
tobennaofordeme 🇺🇸

3 documents

1 / 4

Toggle sidebar

Related documents


Partial preview of the text

Download MATLAB Assignment: Capacitor Discharge Circuit Simulation - Prof. M. Elseifi and more Study notes Civil Engineering in PDF only on Docsity! CE2720 Assignment 6 1. >> q0=12; R=50; L=5; C=1e-4; >> t=linspace(0,0.7,100)'; >> q1=q0*exp(-R*t/(2*L)); >> q2=cos(sqrt((1/(L*C))-(R/(2*L))^2)*t); >> q=q1.*q2; >> plot(t,q) >> xlabel('Time') >> ylabel('Capacitor') 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 -10 -5 0 5 10 15 time ca pa ci to r 2. >> t=linspace(5,47,8) t = 5 11 17 23 29 35 41 47 3. >> v=(8:-0.5:0) v = Columns 1 through 7 8.0000 7.5000 7.0000 6.5000 6.0000 5.5000 5.0000 Columns 8 through 14 4.5000 4.0000 3.5000 3.0000 2.5000 2.0000 1.5000 Columns 15 through 17 1.0000 0.5000 0 4. >> F=[0.9 1.1 1.2 1.3 1.5]; >> x=[0.018 0.025 0.03 0.035 0.045]; >> k=F./x k = 50.0000 44.0000 40.0000 37.1429 33.3333 >> U=0.5*k.*x.^2 U = 0.0081 0.0138 0.0180 0.0227 0.0338 >> max(U)
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved