Homework 8 30

Onelineadded10to thevalueofneachtime nn10

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: o lines of code to be repeated. One line added 10 to the value of “n” each time >> n = n+10; The second was the line of code the directions instructed us to input with one modification. Instead of entering 10, 20, 30, ect by hand I changed the line of code to read as: >> [T Y]=myeuler(f,[0,12],.1,n); By making these modifications I was able to simply press the up arrow twice followed by enter and my program would automatically increment and plot the new function output on the graph. Once the new entry on the graph showed no significant...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online