Doug’s MATLAB Video Tutorials

September 23rd, 2008

Importing Excel data and fitting a curve to it

I recently got an e-mail from a MATLAB user that had a large dataset in Excel. They wanted to import the data and “take the average of the graph”. It turns out that meant fitting a polynomial to the data. This three minute video covers the import of the data, finding the right combination of data to plot and then we fit a polynomial to it.  Finally the graphic is cleaned up by changing the colors and line styles.  All of this is done without having to write code or type a command. This video will be the most helpful for newer MATLAB users.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

Doug's picture

These postings are the author's and don't necessarily represent the opinions of The MathWorks.