Use data from excel, input them into an equation in matlab that creates the points to be plotted in Matlab
Show older comments
Hello,
I am brand new with matlab and I want to take a bunch of data from excel and put it into matlab. Using that data, I want to multiple two columns to create the y axis and use one of the columns as the x axis.
Here is an image of the data I have where column a is the time for the x axis and column b and c are multiplied to create y axis component for power in and column d and e are multiplied to create y axis for power out.

Here is an example of the chart I am trying to recreate. You can see that there are dots for power in and power out and they are charted on the same plot.

The second part is to create a plot that looks like the image below. The equation is efficiency=(power in)/(power out)

I understand that i have to put the xls file in the matlab folder I am working with and to pull it into the workspace with "xlsread testfile" but I have no idea where to go from there. It's temping to just use excel but I have to do the math in Matlab.
Thank you for any help you can provide! -Erin
Accepted Answer
More Answers (0)
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!