Question: Write a script to graph the result of Matlab s log ( x ) for 1 0 2 < = x < = 1 0
Write a script to graph the result of Matlabs logx for x together with the results from myLnX for N
and in a single figure. Use linear scales for both plot axis, ie Matlabs plot and logarithmically spaced points for x
Notes for the MatlabGrader script submission:
Comment out clear or clear all in your script when submitting to MatlabGrader.
Generate and store the figure handle examFig for the graph before doing any plotting commands, using
examFig figure;
Properly label both axis using the appropriate variable names x ln x
Include a legend for each line, starting with logx followed by N N and N
Ensure that your legend does not obstruct any part of your plot.
Use the transpose of Matlabs logspace command to generate the necessary column vector x using logarithmically
spaced points covering the requested x value range: x logspace;
Do not include the source code for myLnX in your script. A correct version is available to be called on Matlab Grader
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
