Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2008 Mar Apr - Volume 5,067,050,224 We are providing the raw data in a text file (download here), wih one row for each day of
2008 Mar Apr - Volume 5,067,050,224 We are providing the raw data in a text file (download here), wih one row for each day of market activity. It is arranged in columns that designate \begin{tabular}{|l|l|l|r|r|r|r|r|} \hline Year & Month & Day & Daily Opening Price & Daily High Price & Daily Low Price & Daily Closing Price & Daily Volume \\ \hline 1928 & 10 & 01 & 239.43 & 242.46 & 238.24 & 240.01 & 3500000 \\ \hline 1928 & 10 & 02 & 240.01 & 241.54 & 235.42 & 238.14 & 3850000 \\ \hline \\ \hline 2009 & 01 & 29 & 8373.06 & 8373.06 & 8092.14 & 8149.01 & 5067060000 \\ \hline 2009 & 01 & 30 & 8149.01 & 8243.95 & 7924.88 & 8000.86 & 5350580000 \\ \hline \end{tabular} For this week, feel free to use advanced knowledge about the data set to mimic the figure. In particular, the entry for 2008-01-30 is on row 19919 of that file. - Notice that the y-axis is plotted on a logarithmic scale while the x-axis is plotted on a linear scale. This can be accomplished in MATLAB with the semilogyfunction. - By default, the semilogy function draws tick marks for the y-axis at powers of ten. This can be adjusted to be at each thousand by using the command set(gca,YTick,1000.[1:20]);set(gca,YTickLabel,1000.[1:20]); While we're at it, the tick marks for the y-axis can be moved to the right-hand side with the command. set (gca, 'Yaxislocation', 'right'); The bottom figure is a bar graph based upon the daily volume. - The separation between columns of the bar graph can be achieved in part by sending an extra parameter to the bar function that is the width value (by default, it is 0.8 )
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started