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

2 次查看(过去 30 天)
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?

回答(1 个)

Image Analyst
Image Analyst 2012-1-17
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 个评论
john john
john john 2012-2-2
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Export to MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by