HW4 #3

# HW4 #3 - % of the figure window and one at the bottom. The...

This preview shows pages 1–2. Sign up to view the full content.

Sheet1 Page 1 %Engineering 6, Spring 2004, Problem 4.3 %Ryan Uy, 2509 %Section B05, Tues. 3-4 % a) % set vector array named year in increments of 3 from 1965 to 2004 year = (1965:3:2004) % create equation involving the vector named year that calculates a % density vector named density, where the values of density are the Moore's % Law values for each corresponding year value density = 64 .* (4 .^ ((year - 1965)/3)) % construct table in shich the first the first column contains the year % values and the second column contains the corresponding values for the % number of transistors per chip table = [year' density'] %set format short g format short g %display commands disp(' ') disp(' Year No. of transistors per chip') disp(table) % b) % Using the year and density vectors, create two subplots, one at the top

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % of the figure window and one at the bottom. The top plot should use a % linear scale for y, and the bottom should use a logarithmic scale for y. figure(1) % subplot 1 of a 2 X 1 display, year vs. density on two linear scales subplot(2,1,1), plot(year,density),. .. xlabel('Chip density, 1965-2004'),ylabel('No. of transistors per chip') % subplot 2 of a 2 X 1 display, year vs. density on a logarithmic y scale subplot(2,1,2), semilogy(year,density),. .. xlabel('Chip density, 1965-2004'),ylabel('No. of transistors per chip') Sheet1 Page 2 %transposed year and density %create newline to compensate for the prompt %heading %table display %use figure(1) command to bring the figure window to the front...
View Full Document

## This note was uploaded on 01/22/2011 for the course ENG 006 taught by Professor Lagerstrom during the Spring '06 term at UC Davis.

### Page1 / 2

HW4 #3 - % of the figure window and one at the bottom. The...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online