1

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:...

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 answers
How do you solve the right triangle given A = 61 deg 00'; b = 39.2cm?
How do you solve the right triangle given A = 61 deg 00'; b = 39.2cm?...
1 answers
A firm with annual sales of $8,300,000 increases its inventory turnover from 2.5 to 4.5. How...
A firm with annual sales of $8,300,000 increases its inventory turnover from 2.5 to 4.5. How much would the company save annually in interest expense if the cost of carrying the inventory is 7 percent? Round your answer to the nearest dollar....
1 answers
S26 Q3: You have the following information related to XYZ Company: Product A Product B Product...
S26 Q3: You have the following information related to XYZ Company: Product A Product B Product C Selling price/unit S 20 S 30 VC/unit S 15 S 10 10 Machine-minute required 3,000 units 1,500 units 1,200 units Monthly demand Available capacity: 5,800 machine-minutes Required: What is the product mix th...
1 answers
26 Gaved A manufacturing company that produces a single product has provided the following data concerning...
26 Gaved A manufacturing company that produces a single product has provided the following data concerning its most recent month of operations: Units in beginning inventory Units produced Units sold Units in ending inventory Variable costs per unit: Direct materials 4,100 4,000 108 Ded 43 Direct lab...
1 answers
True or False: It is free for a company to raise money through retained earnings, because...
True or False: It is free for a company to raise money through retained earnings, because retained earnings represent money that is left over after dividends are paid out to shareholders. True False The cost of equity using the CAPM approach The current risk-free rate of return (TRF) is 4.67%, while...
1 answers
Sun Dance Gardens Inc. develops and produces spraying equipment for lawn maintenance and industrial uses. On...
Sun Dance Gardens Inc. develops and produces spraying equipment for lawn maintenance and industrial uses. On June 3 of the current year, Sun Dance Gardens Inc. reacquired 14,900 shares of its common stock at $32 per share. a. What is the balance of Treasury Stock on December 31 of the current year? ...
1 answers
Chance Company had two operating divisions, one manufacturing farm equipment and the other office supplies. Both...
Chance Company had two operating divisions, one manufacturing farm equipment and the other office supplies. Both divisions are considered separate components as defined by generally accepted accounting principles. The farm equipment component had been unprofitable, and on September 1, 2021, the comp...
1 answers
28. [-13 Points] DETAILS SERCPWA11 8.WA.030. MY NOTES ASK YOUR TEACHER PRACTICE ANOTHER As shown in...
28. [-13 Points] DETAILS SERCPWA11 8.WA.030. MY NOTES ASK YOUR TEACHER PRACTICE ANOTHER As shown in the figure below, a stick of length L = 0.490 m and mass m = 0.230 kg is in contact with a rough floor at one end and a frictionless bowling ball (diameter d = 20.00 cm) at some other point such that ...
1 answers
P 12-2 (similar to Fremort nterprises has an expected return of 1 7% and Laure hurst...
P 12-2 (similar to Fremort nterprises has an expected return of 1 7% and Laure hurst News has an expected rotum ot 21%. If you put 60% of your portfolio in annnt and 40% in Fremont, what is the expected retun of your portfolio? The expected return on the portfolio is %. (Rounded to two decimal place...
1 answers
How do you simplify #(4x^3 + 13x – 7) – (6x^2 + 9x + 2)#?
How do you simplify #(4x^3 + 13x – 7) – (6x^2 + 9x + 2)#?...
1 answers
A line segment has endpoints at #(9 ,1 )# and #(5 ,3)#. If the line segment is rotated about the origin by #pi #, translated vertically by #-2 #, and reflected about the x-axis, what will the line segment's new endpoints be?
A line segment has endpoints at #(9 ,1 )# and #(5 ,3)#. If the line segment is rotated about the origin by #pi #, translated vertically by #-2 #, and reflected about the x-axis, what will the line segment's new endpoints be?...
1 answers
On January 1, 2017, Concord Corporation sold 9% bonds with a face value of $2700000. The...
On January 1, 2017, Concord Corporation sold 9% bonds with a face value of $2700000. The bonds mature in five years, and interest is paid semiannually on June 30 and December 31. The bonds were sold for $2924600 to yield 7%. Using the effective-interest method of amortization, interest expense for 2...
1 answers
Harbour Company makes two models of electronic tablets, the Home and the Work. Basic production information...
Harbour Company makes two models of electronic tablets, the Home and the Work. Basic production information follows: Harbour Company makes two models of electronic tablets, the Home and the Work. Basic production information follows: Direct materials cost per unit Direct labor cost per unit Sale...
1 answers
Part (a) Open the "Union Status and Income. xlsx" file that is posted with the assignment. In ord...
part (a) Open the "Union Status and Income. xlsx" file that is posted with the assignment. In order to test whether there is a difference in the variance of income between Union members and non-Union members, use Excel to carry out an "F-Test: Two-Sample for variances" with Alpha =0....
1 answers
Problem 9.47 16 of 18 Part A Review Determine the thickness of the viscous sublayer The smooth pi...
Problem 9.47 16 of 18 Part A Review Determine the thickness of the viscous sublayer The smooth pipe shown in (Figure 1) transports water at 60° F. The pressure at A and B is 35 psi and 33.5 psi respectively Express your answer using three significant figures. vec Figure of 1 Symbols in Submit Pr...
1 answers
1. How can you use 1H NMR to distinguish between isopropyl ethanoate and methyl 2-methylpropanoate (also...
1. How can you use 1H NMR to distinguish between isopropyl ethanoate and methyl 2-methylpropanoate (also called ethyl isobutyate)? Isopropyl ethanoate 2. This spectrum contains two peaks that are shifted ~3 or more ppm downfield of the other three peaks. Why are these peaks shifted? 1-pentene 2018...
1 answers
True or False. A dishonoured note is removed from Notes Receivable, and the total amount due...
True or False. A dishonoured note is removed from Notes Receivable, and the total amount due is recorded in Accounts Receivable. please explain....

-- 0.058516--