MATLAB Answers

surface from scatter 3 plot

조회 수: 109(최근 30일)
I have the following scatter graph using the commant scatter 3
My x axis is a column vector 3042x1 (utuvals 0-0.6)
my y axis is a column vector 3042x1 (mppvalsco 1.3-2.1)
and z axis is a column vector 3042x1 (vectorrealcolum)
How can i convert the scatter plot to surface plot with the point appearing on it?
Thank you

  댓글 수: 1

darova 22 Jul 2019
Read about griddata()

Sign in to comment.

채택된 답변

SaiDileep Kola
SaiDileep Kola 29 Jul 2019
[xq,yq] = meshgrid(-2:.2:2, -2:.2:2);
vq = griddata(x,y,v,xq,yq); %(x,y,v) being your original data for plotting points
hold on
xlim([-2.7 2.7])
ylim([-2.7 2.7])
You get the surface plot with points appearing on it, using the above code. You may also refer to the documentation at

  댓글 수: 0

Sign in to comment.

추가 답변(0개)

Translated by