I want to plot a 3d image of the set of values attached herewith. i am also enclosing the possible image that will be the output of the desired Matlab code.
2 次查看(过去 30 天)
显示 更早的评论
Kindly share the Matlab code for the plot of the following set of 3 tuples values.
0 个评论
采纳的回答
KSSV
2020-6-10
编辑:KSSV
2020-6-10
data = xlsread('Book1.xlsx') ;
x = data(:,1) ;
y = data(:,2) ;
z = data(:,3) ;
nx = length(unique(x)) ;
ny = length(unique(y)) ;
X = reshape(x,nx,ny) ;
Y = reshape(y,nx,ny) ;
Z = reshape(z,nx,ny) ;
surf(X,Y,Z)
shading interp
colorbar
4 个评论
KSSV
2020-6-10
Thanks is accepting the answer.
What I have showed is the way to plot. It depends on whether your data is given for the shown figure or not.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!