Question: % This program will do a rough plot of Moore's law, the equation that says % the amount of computing power on a chip will
% This program will do a rough plot of Moore's law, the equation that says % the amount of computing power on a chip will double every 24 months. A % simplified version of that equation is of the form y=1-2^(x/24) where x % is the number of months and y is a factor of computing power. % initialize some values x=zeros(100); for i=1:length(x) y(i)=(2^(i/24)); x(i)=i; end plot(x,y) title('Moore's law shows growth') xlabel('months') ylabel('growth factor')
For each program do the following:
Look over the program. Read the comments at the top and the comments assigned to each line. Look at the program structure.
Run the program. You should get an error message. Read that message.
Figure out what is wrong with the program and fix it.
Run the fixed program to verify your fix.
Add a header comment for our class with your name in it.
Upload that program to this assignment.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
