- #1
apollon
- 1
- 0
Hello guys I'm totally new to MATLAB and i would like help solving the problems i have with my homework,I have these two excercises and don't even know where to begin
1st:
When a dc voltage E volts is switched on a cross a series RC circuit at t=0(s),the variation of the capacitor voltage with time is given by
Vc(t)=E(1-e^(-t/x)
x=R*C
E=10V
R=1000 oms
C=1mF
I need to use MATLAB to plot the voltage across the capacitor for t=0 to 6 time constants
2nd:
I need to develop a program to perform the following tasks :
1.Draw a circle on a 2-d plan,make your program promt te user for the following values:(a,b) is the centre of circle,radius r and number of points N.
Hint:you need to start by creating a vector of angels(use linspace function)
Equation of circle using the trigonometric functions sine and cosine as
x=a+rcost
y=b+rsint
2.After plotting the circle create a menu wuth two options.
If the user enters option 1 the program calculates the area of the plotted circle
If the user enters option 2 the program calculates the circumference of the circle
I need to do this homework as soon as possible,I missed the classes tha were teaching these stuff due to being sick and I'm now in risk of being hold back a year,any help would greatly appreciated
1st:
When a dc voltage E volts is switched on a cross a series RC circuit at t=0(s),the variation of the capacitor voltage with time is given by
Vc(t)=E(1-e^(-t/x)
x=R*C
E=10V
R=1000 oms
C=1mF
I need to use MATLAB to plot the voltage across the capacitor for t=0 to 6 time constants
2nd:
I need to develop a program to perform the following tasks :
1.Draw a circle on a 2-d plan,make your program promt te user for the following values:(a,b) is the centre of circle,radius r and number of points N.
Hint:you need to start by creating a vector of angels(use linspace function)
Equation of circle using the trigonometric functions sine and cosine as
x=a+rcost
y=b+rsint
2.After plotting the circle create a menu wuth two options.
If the user enters option 1 the program calculates the area of the plotted circle
If the user enters option 2 the program calculates the circumference of the circle
I need to do this homework as soon as possible,I missed the classes tha were teaching these stuff due to being sick and I'm now in risk of being hold back a year,any help would greatly appreciated