Write a MATLAB script that computes the L1, L2, and Linfity norms of a vector.

engineering

Description

1) Write a MATLAB script that computes the L1, L2, and Linfity norms of a vector.

SUBMIT your script and sample output in pdf format.

2) Write a MATLAB script that computes the roots of a quadratic polynomial (ax^2 + bx + c = 0) using the bisection method within a specified range

INPUT:

User enter coefficients a, b, and c and initial range i to j.

SUBMIT your script and sample output in pdf format.

3) Write a MATLAB script that computes the first derivative (central difference) of f(x) = e^x at x=0 using different values of h. Plot the error values with respect to h.

INPUT:

Initial value of h.


OUTPUT:

Graph of error vs h.


SUBMIT your script and sample output in pdf format.


4) Solve (dy/dx) = -y    y(0)=1. Solve y(9) using the following methods: (1) Euler , (2) Backward Euler, and (3) Trapezoidal Rule.

INPUT:

None.


OUTPUT:

A single graph with plots from the Euler, Backward Euler, and Trapezoidal Rule methods as well as the plot of the actual solution.


SUBMIT your script and sample output in pdf format.


Related Questions in engineering category