hw11 - 5 sin( x 2 ) + 4 x 2 + 3 5. (Ch. 21, Problem 7 a)...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework 11 (3-6) 3. (Ch. 21, Problem 2) Write a MATLAB program to solve exercise 7 in Chapter 4. Write a program using a for-loop to print the following sequence including commas: 2, 4, 6, 8, 10, 12, 14, 16 4. (Ch. 21, Problem 3) Write a MATLAB program to solve exercise 7 in Chapter 5. Calculate the value of the following function using a C function for x in the range of -1 x 5 with a step size of 0.25. Plot each function using the plotting function fplotxy() with 100 points. a.) f 1 ( x ) = 2 x sin( x ) + cos( x ) + 4 x + 3 3 x 2 + 2 x + 4 b.) f 2 ( x ) = x 2 2x
Background image of page 1

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

View Full DocumentRight Arrow Icon
c.) f 3 ( x ) = 2 x sin( x ) + cos( x 2 2 x ) d.) f 4 ( x ) = 3 x 2 + 4 x + 3
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 5 sin( x 2 ) + 4 x 2 + 3 5. (Ch. 21, Problem 7 a) Write a MATLAB program to solve exercise 4 in Chapter 13. Write a program to save the following sequence of numbers in a file named number.dat . Then, read the data in this file and display the numbers on the screen. 1 3 5 7 9 11 6. (Ch. 21, Problem 8) Write a MATLAB program to solve exercise 4 in Chapter 19. Given 1 2 3 7 8 9 7 8 1 A = 4 5 6 , B = 1 2 3 , C = 1 2 , and b = 4 , 7 8 9 4 5 6 4 5 7 calculate a.) x = 2 ABb + Ab b.) y = AC using computational arrays and display the result on the screen....
View Full Document

This homework help was uploaded on 04/21/2008 for the course EME 005 taught by Professor Cheng during the Fall '07 term at UC Davis.

Page1 / 4

hw11 - 5 sin( x 2 ) + 4 x 2 + 3 5. (Ch. 21, Problem 7 a)...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online