From: Paria Sattari on 11 Feb 2010 14:14 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 11 Feb 2010 14:24 "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 11 Feb 2010 14:47 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
|
Pages: 1 Prev: reshape table to matrix while grouping rows Next: 3d slice as a 2D image |