Need Help with this Question or something similar to this? We got you! Just fill out the order form (follow the link below), and your paper will be assigned to an expert to help you ASAP.
MATLAB Assessment Answer
Task:
Create a MATLAB script file called A2_studentId.m where the student ID is your actual 8-digit student id. Type the answers to the following questions on your MATLAB script file. When the script file is run, the answers (if any) should be displayed on the MATLAB command window whereas intermediate calculation results should not be displayed.
Q1. Create a function called A2_studentId_fun in a separate function m-file. Use
your student ID in place of studentId in the assessmentfunction name. The function
description is as follows:
Input is x
Outputs are y and z
Function description (the relationship between input and the outputs) is
z = x 2 +1 and y = x 2 1
if
|x| < 2
z = 1/(x 2 +1) and y = 1/(x 2 1)
if
2<|x| ?4
z = sin(x) and y = cos(x)
for all other values of x
Write the commands to call the above function for input values of
x = -0.8
x= 3.6
x= 5.4
in A2_studentId.m file.
Q2. (From MATLAB for Engineers by H Moore, 3 rd ed.)
Create a vector x of values form 0 to 20 ? , with a spacing of ? /100. Define vectors y
and z as
yy = xx sin(xx)
and
zz = xx cos(xx)
Using subplot command, on the same figure window:
(a) Create an x-y plot of x and y.
(b) Create a polar plot of x and y.
(c) Create a three-dimensional line plot of x, y, and z. Add a title and labels.
2
Q3. (from MATLAB for Engineers by H Moore, 3 rd Edition)
Perhaps the most famous equation in physics is
EE = mmcc 2
which relates energy E to mass m. The speed of light in a vacuum, c, is the property
that links the two together. The speed of light in a vacuum is 2.9979×10 8 m/s.
(a) Create a function called energy to find the energy corresponding to a given
mass in kilograms. Your result will be in joules since 1 kg m 2 / s 2 = 1 J.
(b) Use your function to find the energy corresponding to masses from 1 kg to
10 6 kg. Use the logspace function (consult help logspace) to create an
approximate mass vector.
(c) Create a plot of your results. Try using different logarithmic plotting
approaches (e.g. semi logy, semi log x, and log-log) to determine the
best way to graph your results.
Q4. For t = 0 , 1 , 2 , 3 , 4 , 5 evaluate the following:
For t = 0 , 1 , 2 , 3 , 4 , 5 evaluate the following:
Y ( t )
=
7
? k
( t + k )
k = 2
Display the final result (no intermediate values) on command window when the
script file is executed. [Note: Final result should show the values of Y(0), Y(1),
Y(2), Y(3), Y(4), Y(5)]
Display the final result (no intermediate values) on a command window when the
script file is executed. [Note: Final result should show the values of Y(0), Y(1),
Y(2), Y(3), Y(4), Y(5)]
Q5. Create a MATLAB structure called Australian states with the following fields:
name
population and
land_area
Q1. Evaluate the following sum of fractions using symbolic maths in MATLAB.
Display the answer as a fraction. Use the pretty function to display the output.
11 3 1
19 17 7
Q2. Using the symbolic maths toolbox (not using the command roots), solve the
following equation:
6x 3 + 11x 2 ? 9x + 7 = 0
Display your answer in decimal format (not as fractiassessmentons or as the sum of numbers).
Q3. Given the function
y(x) =
(x 2 + 2x + 10)x
(x 2 + 2) 2
(a) Plot the function y(x) using ezplot for -4 x 4.
d
(b) Obtain the function y 1 ( x )
y ( x ) using symbolic differentiation of y(x).
dx
Display the output using pretty command.
(c) Plot the function y 1 (x) using ezplot for -4 x 4 (use top half of a figure for
Q3.(a) and the bottom half for Q3.(c)).
(d) Obtain the minima and maxima of the function y(x) [Hint: solve y 1 (x) = 0].
Display your outputs clearly in decimal format (not as fractions or as the sum of
numbers).
Q4. (from MATLAB: An Introduction with Applications by Gilat)
Define x and y as symbolic variables and create the two symbolic expressions
S = x + ?xy 2 + y 4 and T = ?x ? y 2 .
Use symbolic operations to determine the simplest form of S × T. Use the subs
the command to evaluate the numerical value of the result for x = 9 and y = 3.
Q5. Consider the following set of three equations:
3x 1 + 2x 2 ?x 3 = 12
5x 1 ? 2x 2 +2×3 = 5
x 1 + 6x 2 +3×3 = 17
Define a symbolic variable for each of the unknown, and use MATLABs symbolic
capability to solve each unknown.
Q6. (from MATLAB for Engineers by H Moore, 3 rd Edition)
Use the following equation to create a symbolic function Z:MATLAB Assessment Answer Specialised Software Application
sin(?X 2 + Y 2 )
Z=
?X 2 + Y 2
(a) Use the ezmesh plotting function to create a three-dimensional plot of Z.
(b) Use the ezsurf plotting function to create a three-dimensional plot of Z.
(c) Use the ezcontour to create a contour map of Z.
(d) Generate a combination of surface and contour plot of Z, using ezsurfc.
This MATLAB Assignment has been solved by our MATLAB Assignment experts at TVAssignmentHelp. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. Theres one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
