Interpolated contour plot with excel data
8 次查看(过去 30 天)
显示 更早的评论
I have xyz data (8 values of x and y but then 64 values of z)
I'd like to plot this in a filled contour plot with interpolated data between values, but I can't seem to find a way to do it, I've researched several methods but keep hitting a dead end pretty much as soon as I start, I can't seem to arrange the data correctly and am not sure of the correct way to get it to interpolate.
I have attached the data, any assistance would be greatly appreciated.
0 个评论
采纳的回答
Star Strider
2021-10-22
I’m guessing as to what ‘x’ and ‘y’ are, however it will be easy to reverse them if I guessed wrong.
T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/774963/RMSE_Surface%20v2.xlsx', 'VariableNamingRule','preserve')
x = T1{1,2:end};
y = T1{2:end,1};
z = T1{2:end,2:end};
figure
contourf(x, y, z)
Experiment to get different results.
.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!