Interpolated contour plot with excel data
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Scott Lines
le 22 Oct 2021
Commenté : Star Strider
le 22 Oct 2021
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 commentaires
Réponse acceptée
Star Strider
le 22 Oct 2021
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.
.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Contour Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
