Multidimensional Interpolation scattered data
9 次查看(过去 30 天)
显示 更早的评论
Is it possible to do multidimensional interpolation on a set of scattered data?
I have scattered data points for offshore wind farms projects. water depth = WD , distance to shore = DS , installed capacity = Cap. there is no mathermatical relationship between all these parameters.so each wind farm has 3 coordinates (WD,DS,Cap). I have also values for each farm's installation costs. I want to interpolation and plot it for these scattered points. I dont know the mathematical relation for installation costs as function of all these parameters. they are just randomly gathered projects data. I would like to see how installation costs will be versus all these. So what i have is:
DS=[3 20 3.5 7.5 6 3 8.5 5.2 10];
Cap=[40 160 23 60 165 60 90 90 110 180];
WD=[10 14 14 12 9 10 5 10 9];
Instalcost=[20.6 166 14.52 76.37 136.92 76.37 83.7 101.81 100.22 325.97];
I tried several interpolation methods following different steps from the documentations , but i keep getting errors .
Can you please help me in how to write this code to get interpolation plot for all this data ?
0 个评论
回答(1 个)
Maadhav Akula
2020-3-2
Hi,
Can you check your data once as Cap and Instalcost are 10x1 vectors, whereas DS and WD are 9x1 vectors. You can use the scatteredInterpolant class, if all the vectors are of same size, but you should pass them as column vectors. You can just transpose the existing variables. The following links might be helpful :
Hope this Helps!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!