1 answer

MATLAB QUESTION Find the general solution of the given application of differential equation using MATLAB. NOTE:...

Question:

MATLAB QUESTION

Find the general solution of the given application of differential equation using MATLAB.

NOTE: Screenshot the MATLAB ENVIRONMENT together with the CODES and FINAL ANSWERS.

PLEASE SOLVE USING MATLAB CODE! PLEASE SOLVE USING MATLAB CODE! PLEASE SOLVE USING MATLAB CODE! A circuit has in series an el

PLEASE SOLVE USING MATLAB CODE! PLEASE SOLVE USING MATLAB CODE! PLEASE SOLVE USING MATLAB CODE! A circuit has in series an electromotive force given by E=50sin(20t) volts, R=5 ohms, I= 0.4 Henrys. If the initial currents is 0, find the current at time t> 0. Guaranteed upvote once done perfectly.

Answers

ANSWER:

  • I have provided the properly commented code in both text and image format so you can easily copy the code as well as check for correct indentation.
  • I have provided the output image of the code so you can easily cross-check for the correct output of the code.
  • Have a nice and healthy day!!

CODE TEXT

% first order diffrential equation

% for E = 50*sin(20t), R = 5, I(inductance) = 0.4 Henrys, current=i is

% I (di/dt) + R.i = E(t)

% using syms and dsolve methods of matlab

syms curr(t)

% defining other given variables

I = 0.4;

R = 5;

E = 50*sin(20*t);

% defining equation

eqn = I*diff(curr,t) + R*curr == E;

% defining initial condition

cond = curr(0) == 0;

% solving equation using dsolve w.r.t initial condition

currSol(t) = dsolve(eqn,cond);

% finding current for T=1:100 using solution, converting sym solve to

% double

T = 1:100;

current = double(currSol(T));

% ploting the result

plot(T,current);

xlabel('Time');

ylabel('Current');

title('Time vs current for I (di/dt) + R.i = E(t)')

CODE/ENVIRONMENT IMAGE

OUTPUT IMAGE

.

Similar Solved Questions

1 answer
Please reply to this post and ask one question regarding this post: Quality improvement is the...
please reply to this post and ask one question regarding this post: Quality improvement is the uses of all of the interdisciplinary teams involved in patient care to come together to ensure that the best care is provided to the patient (Moran & Johnson, 1992). The nurses are an essential role to...
1 answer
PLEASE HELP BIOCHEM 2a Predict all of the following that are consequences of withdrawing oxygen given...
pLEASE HELP BIOCHEM 2a Predict all of the following that are consequences of withdrawing oxygen given constant supply of NADH. may have more than one answer a. Pool of coenzyme Q becomes fully reduced. b. recycling of NAD+ continues indefinitely c. rate of NADH oxidation becomes zero owing to a lack...
1 answer
1. Sally is first year student at a local community college. She is a 19 year-old...
1. Sally is first year student at a local community college. She is a 19 year-old woman, stands 5 foot 4 inches tall and weighs about 128 pounds. Sally is in reasonable health. Sally enjoys going out with her friends to the local pizza place. She eats whatever they order even if she is not very hung...
1 answer
Water is siphoned from the large tank shown below. Flow is steady and viscous effects are...
Water is siphoned from the large tank shown below. Flow is steady and viscous effects are negligible. a) Determine the flowrate from the tank; b) Determine the pressure at points 1, 2 and 3; c) Where is the critical point for cavitation? 2-in.-diameter hose 2 ft |(3) 3 ft 8 ft...
1 answer
If you placed some purified C5a at the base of a blister, what effect would you...
If you placed some purified C5a at the base of a blister, what effect would you expect this to have on local leukocyte traffic. What effect would you expect it to have on blood flow and vascular permeability?...
1 answer
How do you write an equation of a line given Point: (7, 4); Slope: 6?
How do you write an equation of a line given Point: (7, 4); Slope: 6?...
1 answer
You have a $41,000 portfolio consisting of Intel, GE, and Con Edison. You put $22,800 in...
You have a $41,000 portfolio consisting of Intel, GE, and Con Edison. You put $22,800 in Intel, $8,400 in GE, and the rest in Con Edison. Intel, GE, and Con Edison have betas of 1.3, 1, and .8, respectively. What is your portfolio beta? Multiple Choice Ο 1.119 Ο 0.931 Ο 0.861...
1 answer
12. A ball moves in on dimension. The potential-energy function is U() = 1/22 - 1/x....
12. A ball moves in on dimension. The potential-energy function is U() = 1/22 - 1/x. What is the conservative force generated by this potential en- ergy as a function of x?...
1 answer
Armer Company is accumulating data to use in preparing its annual profit plan for the coming year. The cost behavior pattern of the maintenance costs must be determined. The accounting staff has sugg...
Armer Company is accumulating data to use in preparing its annual profit plan for the coming year. The cost behavior pattern of the maintenance costs must be determined. The accounting staff has suggested the use of linear regression to derive an equation for maintenance hours and costs. Data regard...
2 answers
Prove that diagonals of a rhombus bisect each other?
Prove that diagonals of a rhombus bisect each other?...
1 answer
If a solution has an absorbance value of 0.518 at a wavelength of 450 nm, what...
If a solution has an absorbance value of 0.518 at a wavelength of 450 nm, what is the percent transmittance of this solution at this wavelength?...
1 answer
(1). Calculate the gross annual return on this stock and report the number in a separate...
(1). Calculate the gross annual return on this stock and report the number in a separate column. (2). Calculate the sample mean for the gross return. (3). Calculate the sample standard deviation for the gross return. (4). Assume the risk-free rate is 0.02. Estimate the risk premium. (5). Estimate th...
1 answer
Q24: Suppose a firm issues a single bond with a face value of $100,000 which is...
Q24: Suppose a firm issues a single bond with a face value of $100,000 which is Convertible into 10,000 Ordinary Shares with a Par Value of $1. The credit entry to “Share Premium – Conversion Equity” on the date of issue was for $20,000.   Assume that the maturity date of...
1 answer
How do you write an equation points (3,2) and (3,5)?
How do you write an equation points (3,2) and (3,5)?...
1 answer
14. Air America books 330 persons on an airplane that can seat only 300. Past studies...
14. Air America books 330 persons on an airplane that can seat only 300. Past studies showed that only 90% of the passengers actually arrive for the flight. Find the probability that there will not be enough seats available....
1 answer
Question 3 Selected income statement data follow for Harley Davidson, Inc., for the year ended December...
Question 3 Selected income statement data follow for Harley Davidson, Inc., for the year ended December 31, 2016 (in thousands) What is the company's times interest earned ratio? Income after interest expenses but before income taxes Interest expense Income tax rate income taxes Net income $1,02...
1 answer
Compute the sample variance and sample standard deviation 1.1 The following measurements were recorded for the...
Compute the sample variance and sample standard deviation 1.1 The following measurements were recorded for the drying time, in hours, of a certain brand of latex paint 3.4 2.5 4.8 2.9, 3.6 2.8 3.3 5.6 3.7' 2.s .4 4.0 5.2 3.0 4.8 Assume that the measurements are a simple random sample....
1 answer
Which of the following has the lowest boiling point: a. C.
Which of the following has the lowest boiling point: a. C....
1 answer
How do you use the Change of Base Formula and a calculator to evaluate #log_6 14#?
How do you use the Change of Base Formula and a calculator to evaluate #log_6 14#?...