
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Project; Class: COMPUTATIONAL METHODS; Subject: Mechanical Engineering; University: University of Colorado - Boulder; Term: Unknown 1989;
Typology: Study Guides, Projects, Research
1 / 1
This page cannot be seen from the preview
Don't miss anything!

a) Defines vector
1 cos , 1, 2 1 i
i x i m m
⦠using single loop.
b) Define vector
sin , 1, 2 1 j
j y j n n
⦠using Matlab vector
operations instead of using loop. c) Define two-dimensional array 2 2 1 1 , 1, , 1, 2 3
a ij xi y (^) j i m j n = ^ ā ^ + ^ ā  = =     ļ£ ļ£ø ļ£ ļ£ø
⦠⦠using double loop.
d) Define two-dimensional array 2 3 1 2 , 1, , 1, 4 3
b ij xi y (^) j i m j n
⦠⦠using āmeshgridā Matlab
command instead of using double loop. e) Plot y vs. x. Define the names for the axes using on-line commands. Create legends. f) Plot two-dimensional array aij as 3-dimensional surface. Use two different styles for the surface: ā shading interp ā and ā shading faceted ā. g) Create a filled contour plot of two-dimensional array bij. Use jet as a colormap. For items (a)-(g) create a single function that performs all the tasks with n and m as input parameters. Run and test the program for ( n,m )=( 11,6 ), ( 51,26 ).
2 sin x e x about x=.
P.S. Email your code to [email protected]. The program that you send should be a working program All the codes will be checked whether they run or not.. If they are erroneous, but run, points will be taken for the errors. If the code is not running (it has some syntax errors), an additional 25% will be taken out. The goal of this class is for you to be comfortable solving engineering problems. Please take your time and learn how to trust the computer.