From: Paria Sattari on
Hi,
I have a text file with three columns: x coordinate, y coordinate and the z value at point (x,y). I need to transfer this file to MATLAB and plot a 3D figure to show the z value at each point. How can I do this?
thanks,
From: us on
"Paria Sattari" <paria.sattari(a)gmail.com> wrote in message <hl1kts$euq$1(a)fred.mathworks.com>...
> Hi,
> I have a text file with three columns: x coordinate, y coordinate and the z value at point (x,y). I need to transfer this file to MATLAB and plot a 3D figure to show the z value at each point. How can I do this?
> thanks,

a hint:

help textread;

us
From: Tazmusica on
Have you tried importing the data (using the GUI, or with the load command (Data=load([PathName FileName])), defining the variables (X=Data(:,1), Y=Data(:,2), Z==Data(:,3)), and using the mesh command (mesh(X,Y,Z)?

"us " <us(a)neurol.unizh.ch> wrote in message <hl1lgk$mk6$1(a)fred.mathworks.com>...
> "Paria Sattari" <paria.sattari(a)gmail.com> wrote in message <hl1kts$euq$1(a)fred.mathworks.com>...
> > Hi,
> > I have a text file with three columns: x coordinate, y coordinate and the z value at point (x,y). I need to transfer this file to MATLAB and plot a 3D figure to show the z value at each point. How can I do this?
> > thanks,
>
> a hint:
>
> help textread;
>
> us