Hello, Im trying to plot a surface thats continuous which should represent the surface of the earth. Im grabbing the data from a text file using importdata. However when i plot it, its one line connecting the points and not the entire surface. Here's my coding. DataCoord=textread('coordinate.txt'); dat1=DataCoord; for i=1:size(dat1) x(i)=dat1(i,1) y(i)=dat1(i,2) h(i)=dat1(i,3) end % [X,Y,Z] = meshgrid (x,y,h); % This generates the actual grid of x and y values. [X] = meshgrid(x); [Y] = meshgrid(y); [Z] = meshgrid(h); % [Z]=meshgrid(h); figure(1); % Generating a new window to plot in. surfc(X,Y,Z) Can anyone please help, thank you very much.

0 |

12/20/2016 11:47:04 AM