{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework 7 Bob 25.1 25.2

Homework 7 Bob 25.1 25.2 - 25.1 In an effort to conserve...

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

View Full Document Right Arrow Icon
25.1) In an effort to conserve paper and grading time we will present only the lines of code which were changed in mywasher.m and mywedge.m as well as the 3D graphs produced by the programs after modifications. The code to mywasher.m was modified by the following: Line 164 was changed to z = (x+y)./(x.^2+y.^2) Lines 195 and 196 were commented out z = (x+y)./(x.^2 + y.^2); % Set node values to a linear funtion. % z(49:64) = 0; % Set inner boundary nodes to zero. % z(1:32) = 0; % Set interior nodes to zero. Figure 25.1a1 – Plan View of mywasher.m Figure 25.1a2 – Isometric View of mywasher.m The code to mywedge.m was modified by the following:
Image of page 1

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

View Full Document Right Arrow Icon
Line 40 was changed to z = sin(x) + sqrt(y) Line 41 was commented out % Set node values to a function z = sin(x) + sqrt(y); %z(1:9) = 0; f = z; Figure 25.1b1 – Plan View of mywedge.m Figure 25.1b2 – Isometric view of mywedge.m 25.2) The function m file for mythreecorners.m was modified to produce a new program called myceters.m which calculates the integral based on the center point of the triangles. The x and y values of each
Image of page 2
triangle were averaged to determine the center point.
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern