Contour Plot result very different
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ozzie Ozburn
el 16 de Jul. de 2018
Comentada: Ozzie Ozburn
el 17 de Jul. de 2018
Hello, I am new about MATLAB and i have data which consist of 3 column. I want to plot a contour by using data but i was not succesfull until now. I am suspicious about data number. I am gonna add my obtained plot and needed plot. The data is 412570 x 3 matrix. I could not add data because its size is over 5 mb (can not archieved also). If someone can help i can send it as e-mail attached.
3 comentarios
jonas
el 17 de Jul. de 2018
Please remove your answers and put the content in the comment field, right below the question.
Respuesta aceptada
jonas
el 17 de Jul. de 2018
Editada: jonas
el 17 de Jul. de 2018
Here is a plot I made using surf:
data=xlsread('Kitap1.xlsx');
X=data(:,1);
Y=data(:,2);
V=data(:,3);
[Xq,Yq]=meshgrid(min(X):0.001:max(X),min(Y):0.01:max(Y));
Vq=griddata(X,Y,V,Xq,Yq);
surf(Xq,Yq,Vq,'edgecolor','interp')
view(2)
axis tight
You have to remember that you need the data on a rectangular grid to use surf. The grid is created using meshgrid and the data is then interpolated using griddata.
See attachment for results. You can play with the colormap and the resolution of the grid if you want to improve the visuals.
Más respuestas (2)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!