What functions produce straight lines when
plotted using semilogx and semilogy. Show example plots.
Using a live script make a line plot
of sinc function
y(x) = sinc(πx) = sin (πx) / πx from
x = −10 to 10. Use eps to address
the singularity that occurs at x = 0. Use handle graphs make the figure fill a
5 inch wide by two inch tall. The curve should be a thick purple line. Make the
y-axis label have the expression for the function displaced as an equation with
the Greek letter for π.
Problem; Make four plots in one figure window using the position attribute rather then using subplot. The first two plots are a semilogy plot of the first 100 Fibonacci numbers, linear plot of the ratio of adjacent Fibonacci numbers. The second two plots are the first 10,000 prime numbers and the ratio of adjacent minus 1. For this last plot use dots and don’t connect the dots with a line. Experiment with, semilogx, semilogy, and loglog to find the one that best shows the results, i.e. the approach that doesn’t smush the data up against axes. Arrange the plot in in two rows and two columns and be sure the plots are easy to read and convey as much information as possible.
Equation 18.86 gives the transfer
function for the motion that results from a force applied to a mass spring
damper system. Make a plotyy plot of the magnitude and phase.
The post What functions produce straight lines when plotted using semilogx and semilogy
Assignment status: Solved by our experts