Info

此问题已关闭。 请重新打开它进行编辑或回答。

I am skectching from excel importeed data but not getting smooth surfaces.

1 次查看(过去 30 天)
clc
data = xlsread('globalrd.xlsx','Sheet6') ;
x = data(:,1) ;
t = data(:,2) ;
u = data(:,3) ;
nx = length(unique(x)) ;
nt = length(unique(t)) ;
X = reshape(x,nx,nt) ;
T = reshape(t,nx,nt) ;
U = reshape(u,nx,nt) ;
surf(T,X,U)
colorbar
  1 个评论
dpb
dpb 2020-8-26
That will be fully dependent upon the granularity/smoothness of the input data. To have a smoother surface will need more data points or to interpolate what you have.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by