Question

MATLAB WORK PLEASEAn oscillating current in an electric circuit is given by: I = 9e-t sin(2nt) where I is the current in Amperes and t is the t

0 0
Add a comment Improve this question Transcribed image text
Answer #1

X 1 Editor - F:\Program Files\MATLAB\R2018a\bin\ current_fn.m current_fn.m X + function [ti, t2] = current_fn (I) 2 - F = @(x

Editor - F:\Program Files\MATLAB\R2018\bin\current_fn.m current_fn.mx function [ti, t2] = current_fn (I) F = @(x) 9.*exp(-x).

Call the function by typing in the command window >> [t1,t2] = current_fn(-1.15)

MATLAB CODE-

function [t1,t2] = current_fn(I)
F = @(x) 9.*exp(-x).*sin(2.*pi.*x); %current function
interval = [0,1.5]; %0 to 0.7 interval
N=500;
start_pts = linspace(interval(1),interval(2),N);

for i=1:numel(start_pts)-1
  
try
  
t(i) = fzero((@(x)F(x)-I),[start_pts(i),start_pts(i+1)]); %fzero function

end
end
nonzeroIndices = t~=0; %extract non-zero elements from matrix 't'
output = t(nonzeroIndices); %new matrix with extracted non-zeo elements
t1=output(1);
t2=output(2);
  

end

  

Add a comment
Know the answer?
Add Answer to:
MATLAB WORK PLEASE An oscillating current in an electric circuit is given by: I = 9e-t...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • An oscillating current in an electric circuit is described by I=9e^-t sin(2pi*t). Determine all values of...

    An oscillating current in an electric circuit is described by I=9e^-t sin(2pi*t). Determine all values of t such that I=3.5 From problem 6.18 in the book: Solve for the root using the bisection method, initial values x, = 0.35 and x, 0.45 and a stopping criterion &=0.5%. Start by rearranging the equation to set it up for root finding if I=3.5. Report your answers to 3 decimal places. Note: use radians for the sine component. iter xl eal (%) xu...

  • MATLAB WORK PLEASE Interest is accrued according to the following formula: A=P i(1 + i)" (1...

    MATLAB WORK PLEASE Interest is accrued according to the following formula: A=P i(1 + i)" (1 + i)" – 1 where A is the annual payment, P is the present worth, i is the interest rate (not in percent), and n is the number of years. You decide to buy a $35,000 vehicle (P), but because you don't currently have the money to finance the entirety of the vehicle, you agree to pay $8,500 per year (A) for 7 years...

  • Consider a Sinusoidally Driven LC Electrical Circuit, which Contains an Electric Potential Oscill...

    Consider a Sinusoidally Driven LC Electrical Circuit, which Contains an Electric Potential Oscillator, E E, cos(or), an Inductor, L, and a Capacitor, C. Note that an Oscillating Charge,g).Forms on the Capacitor Plates, as well as an Oscillating Current, I(). throughout the Circuit, which is Associated with the Driven Frequency, ω , as Shown. 1. 1(6) gt) E(r) Recall that the Electric Potential Over an Inductor is Given by E , and the dl dr Electric Potential Over a Capacitor is...

  • The current​ I(t) in an LC series circuit is governed by the initial value problem below....

    The current​ I(t) in an LC series circuit is governed by the initial value problem below. Determine the current as a function of time t. The current I(t) in an LC series circuit is governed by the initial value problem below. Determine the current as a function of time t 90 sint, 0sts2π I,"(t) + 161 (t) g(t), l (0)-6, l"(0) : 30, where g(t) = 0, 27st Click here to view the table of Laplace transforms I(t) =

  • An electric current in a conductor varies with time according to the expression I(t) = 108...

    An electric current in a conductor varies with time according to the expression I(t) = 108 sin (200πt), where I is in amperes and t is in seconds. What is the total charge passing a given point in the conductor from t = 0 to t = 1/300 s?

  • An electric current in a conductor varies with time according to the expression I(t) = 102...

    An electric current in a conductor varies with time according to the expression I(t) = 102 sin (240πt), where I is in amperes and t is in seconds. What is the total charge passing a given point in the conductor from t = 0 to t = 1/360 s?

  • Can someone please solve the below lab in MATLAB showing the code and the output result...

    Can someone please solve the below lab in MATLAB showing the code and the output result as well please? Me and my partners cannot get our codes to give us the outputs. 10. The current flowing through a certain inductor is found to be given by i() = 0.20e-2- 0.6e-3t V. (a) Plot each of the two components over the range of 0 t 1.5 s. (b) Plot the inductor current over the same time range. (c) Plot the en-...

  • The current I(t) in an LC series circuit is governed by the initial value problem below....

    The current I(t) in an LC series circuit is governed by the initial value problem below. Determine the current as a function of time t. 100 sin 4t, 0sts2n I"(t) + 361(t) = g(t), I(0) = 4, I'(0) = 50, where g(t) = 2n <t 0,

  • MATLAB WORK PLEASE The upward velocity of a rocket can be computed from the following formula:...

    MATLAB WORK PLEASE The upward velocity of a rocket can be computed from the following formula: v=u* In mo -91 mo-91 where v = upward velocity, u = the velocity at which fuel is expelled relative to the rocket, me = the initial mass of the rocket at time t=0,9 = the fuel consumption rate, and g = the acceleration due to gravity. Compute the time tro at which v reaches an arbitrary value using the bisection method. Use the...

  • please do this problem in matlab and show me the code. Thanks. please do this problem...

    please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks.please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT