E- Computer QuestionsExam 1

# E- Computer QuestionsExam 1 - Computer Question 1 Plot and...

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

Computer Question 1: Plot and Subplot Begin by setting x = 0:10:100, and y = [ 2 , 44053 , 9.7033e+008, 2.1373e+013, 4.7077e+017, 1.0369e+022, 2.2840e+026, 5.0309e+030, 1.1081e+035, 2.4408e+039, 5.3762e+043 ] (Note that you don’t have to recopy this portion of code to your blue book.) Now, write Matlab code that creates a subplot with the following four graphs, displayed next to each other: 1) standard x-y plot 2) a plot where the x axis uses a logarithmic scale 3) a plot where the y axis uses a logarithmic scale 4) a plot where both axes use logarithmic scales From these graphs, also deduce the relationship between x and y. Note that you can enter these large numbers by simply typing 5.3762e+043 or similar. Computer Question 2: Class Grades Run the following commands, which create a 100 element row vector b : rand( 'state' , 4 ) ; b = round( 100*rand(1,100) - 10 ); class = ‘Matlab’ Assume that the vector b now contains students’ grades for this class. However, some of the grades were entered incorrectly. Write Matlab code

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.

{[ snackBarMessage ]}

### Page1 / 2

E- Computer QuestionsExam 1 - Computer Question 1 Plot and...

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

View Full Document
Ask a homework question - tutors are online