Challenge

Project - Data Handling and Interpolation

Read Excel file;

  • The Xlsread was used but that was not reccomended by matlab also showed up error,
  • So used readtable command for reading data from excel as table and saved.
  • The read values from excel is saved into seperate varibales by specifying the rows and columns (p(:1)); like this
  • the array2table is used to convert it into a array.

Interpolation of data;

  • the data that saved into the arrays were first plotted using the plot command to see the curve.
  • The polyval & poly fit were used to interpolate the graph.
  • the polyval is used to find the value for the new unknowns ,polyfit for finding new equations.
  • The spline,cubic linear are interpolated using the interp1;

Write to text file

  • File id is opened and the fieinwhich we want to specify is mentioned like .TXT
  • The length of array which is to be stored in array is founded using the length() command
  • Then for loop is used to save the data into the file.
  • then fid is closed.

Graphical solutions

  • the plootting of the graphs is done using the following commands
    ployval and polyfit
    animatedline
    interp1
    cubic
    spline
    linear
    the range is made to wide range for the different plots.
  • and the 3d graphs are plotted for the power voltage current using the
  • Plot3
  • surf
  • animatedline.
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.