Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Write MATLAB scripts

Write MATLAB scripts

EE5003 Final Exam – Fall 2020

Question 1: ESSAY

Using the default settings in ode45, write MATLAB® scripts that will solve the following differential equation:

for a frequency (f) of 1 Hz. Also, since the solution of this trivial differential equation is:

include in your main script the code needed to plot out the theoretical solution along with the numerical solution.

MATLAB® help for “ode45”:

ode45 Solve non-stiff differential equations, medium order method.

[TOUT,YOUT] = ode45(ODEFUN,TSPAN,Y0) with TSPAN = [T0 TFINAL] integrates the system of differential equations y’ = f(t,y) from time T0 to TFINAL with initial conditions Y0. ODEFUN is a function handle. For a scalar T and a vector Y, ODEFUN(T,Y) must return a column vector corresponding to f(t,y). Each row in the solution array YOUT corresponds to a time returned in the column vector TOUT. To obtain solutions at specific times T0,T1,…,TFINAL (all increasing or all decreasing), use TSPAN = [T0 T1 … TFINAL].

Question 2: ESSAY

Write the sequence of MATLAB® commands needed to find, symbolically, the indefinite integral of the following function:

Then write a MATLAB® script that numerically integrates this function (dy/dt) from t_start to t_stop for f = 1.

MATLAB® help for “integral”:

integral Numerically evaluate integral.

Q = integral(FUN,A,B) approximates the integral of function FUN from A to B using global adaptive quadrature and default error tolerances.

FUN must be a function handle. A and B can be -Inf or Inf. If both are finite, they can be complex. If at least one is complex, integral approximates the path integral from A to B over a straight line path.

For scalar-valued problems the function Y = FUN(X) must accept a vector argument X and return a vector result Y, the integrand function evaluated at each element of X.

QUESTION 3: ESSAY

Write a MATLAB® script that plots a segment of a sphere using blue dots, and computes the area of the segment. The segment is R=7, theta=20:60, and phi=25:50. The following formulas may be useful:

QUESTION 4: ESSAY

Assume the matrix ‘A’ has been defined in MATLAB® and consists of three columns. The first column consists of the times at which voltage across and current through a resistor were measured. The second column consists of the voltage measurements. The third column consists of the current measurements.

Write the MATLAB® commands needed to create a structure named ‘r_meas’ with the fields ‘time’, ‘voltage’ and ‘current’ populated with the data from matrix A.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Topnotch Essay only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided byTopnotch Essay are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Topnotch Essay is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Topnotch Essay, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.