Can you help me how to interpolate data in the excel table?

1 view (last 30 days)
Can you help me how to interpolate data in the excel table?(my table on excel look like this)
  • set(handles.total_answer,'String',out);
  • P EL
  • 800 300
  • 750 250
  • 725 175
  • 700 100
My GUI solves power, after that if the answer match on the excel he will give the equivalent row value..my problem now, for example i got result of 705 so the there is not same number in excel.. so my solution it will interpolate the value from 700-725? How do I solve that?

Answers (1)

Image Analyst
Image Analyst on 17 Jan 2012
I'm not sure what an Excel row would look like if it looked like this: "* set(handles.total_answer,'String',out); * P EL * 800 300 * 750 250 * 725 175 * 700 100" What's going on with the set() statment? Is that a string in an Excel cell? What's going on with the asterisks and other character strings (P & EL)???
Anyway, looking at just the numbers 800 300 750 250 725 175 700 100, it looks like 705 could be in there in 5 different places, between 800 & 300, between 300 & 750, between 750 & 250, between 250 & 725, and between 725 and 175. Bottom line, I have no idea what you tried to explain, so just take a look at interp1() or look up interpolation in wikipedia. If that doesn't work, come beck here and explain better.
  6 Comments
john john
john john on 2 Feb 2012
hmmm 1st column would be 700 up to 800 and the 2nd column would be 100 - 300.. my gui can read excel then if there are match number he will give the equivalent row at 2nd column...
what if answer on GUI not match at 1st column.. so i need interpolation? or just algebra formula?

Sign in to comment.

Categories

Find more on Matrices and Arrays 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!