Thursday, December 10, 2015

some lecture in october probably

One of those 5 step problems with the whole: Question, inputs and out puts, assumptions, hand example, then coding, comparing
jist to it.


I do recall this lesson, and in fact have some rather good commentary to it. So lets get started then

As you can see from the above picture, the polyfit and polyval function have been introduced. These are ideal for making mathematical models and for putting the equations to the math models on the graph. The final for this class had some similar question being asked of us (that is the students of the class). Any butt you couldn't use this for a 3-d plot/ set of data because matLab doesn't know how to come up with a 3 variable dependent polyfit equation. Go figure.
And another great, probably would have worked in the best case scenario on the final, use of matlab known as interpolation or interpolated spline which has matlab make a guess of where to put a piece of data that is in between data points of an already declared function. Super useful as the user inputs this little baby and then doesn't even have to make a math model for the new data points to be integrated into the data that was originally in the noninterpolated data. This picture shows 3 variable while the following shows the same code with 2 so they are more than likely in the wrong order but who cares.

No comments:

Post a Comment