Hello,
I try to plot a mesh, but everytime I get an error. I have 3 files (file1,
file2, file3), every of them contains 1 column and n rows of several data.
Now i want to plot the data so that x-axis contains the values of file1, the
y-axis contains the value of file2 and the z-axis contains the values of
file3.
I tried the following:
load file1.txt;
a=file1;
load file2.txt;
b=file2;
load file3.txt;
c=file3;
[X,Y] = meshgrid(a,b);
mesh(X,Y,c);
but an error occurs by function mesh
thanx for help - Tino
|
|
0
|
|
|
|
Reply
|
tino.langer (6)
|
10/17/2003 5:37:48 PM |
|
Hi Tino ,
Could u please provide me some information about the files
which u are using i.e file1,file2,file3.
Well file3 i.e the one with the variable c should be a function of a
and b .
For example if i have a=-2:0.2:2 and
b=-2:0.2:2 and u do [X,Y]=meshgrid(a,b) well it will work but when u
do mesh (X,Y,c)
c should be a function of X,Y (should be generally in an equation
form) then ur mesh(X,Y,c) will work .
Otherwise it will give an error ..
Regards
Anshu
Tino Langer wrote:
>
>
> Hello,
>
> I try to plot a mesh, but everytime I get an error. I have 3 files
> (file1,
> file2, file3), every of them contains 1 column and n rows of
> several data.
> Now i want to plot the data so that x-axis contains the values of
> file1, the
> y-axis contains the value of file2 and the z-axis contains the
> values of
> file3.
>
> I tried the following:
>
> load file1.txt;
> a=file1;
>
> load file2.txt;
> b=file2;
>
> load file3.txt;
> c=file3;
>
> [X,Y] = meshgrid(a,b);
> mesh(X,Y,c);
>
> but an error occurs by function mesh
>
> thanx for help - Tino
>
>
>
|
|
0
|
|
|
|
Reply
|
experteyes2002 (51)
|
10/18/2003 1:59:44 PM
|
|
Ok, it's a little bit strange. I have 11 results of an simulation. The
parameters are running from 0.5 to 3.5 in steps of 0.3. For each of this
sumulations exists one file with 2 colums and 42 rows. the first columns is
in each file the same - these are numbers from 0 to 120 in steps of 10. Only
the second column differs from file to file. No I want a mesh with the
values og 0.5 to 3.5 on the x-axis, the values from 0 to 120 on the y-axis
and the values from the second row of the files should be the z-axis.
But how to do this?
Thanx - Tino
"Anshu" <experteyes2002@yahoo.co.in> schrieb im Newsbeitrag
news:eec5b20.0@WebX.raydaftYaTP...
> Hi Tino ,
>
>
> Could u please provide me some information about the files
> which u are using i.e file1,file2,file3.
> Well file3 i.e the one with the variable c should be a function of a
> and b .
>
>
> For example if i have a=-2:0.2:2 and
> b=-2:0.2:2 and u do [X,Y]=meshgrid(a,b) well it will work but when u
> do mesh (X,Y,c)
> c should be a function of X,Y (should be generally in an equation
> form) then ur mesh(X,Y,c) will work .
> Otherwise it will give an error ..
>
>
>
>
>
> Regards
> Anshu
>
>
>
>
>
> Tino Langer wrote:
> >
> >
> > Hello,
> >
> > I try to plot a mesh, but everytime I get an error. I have 3 files
> > (file1,
> > file2, file3), every of them contains 1 column and n rows of
> > several data.
> > Now i want to plot the data so that x-axis contains the values of
> > file1, the
> > y-axis contains the value of file2 and the z-axis contains the
> > values of
> > file3.
> >
> > I tried the following:
> >
> > load file1.txt;
> > a=file1;
> >
> > load file2.txt;
> > b=file2;
> >
> > load file3.txt;
> > c=file3;
> >
> > [X,Y] = meshgrid(a,b);
> > mesh(X,Y,c);
> >
> > but an error occurs by function mesh
> >
> > thanx for help - Tino
> >
> >
> >
|
|
0
|
|
|
|
Reply
|
tino.langer (6)
|
10/18/2003 10:49:08 PM
|
|
|
2 Replies
43 Views
(page loaded in 0.043 seconds)
Similiar Articles: Hide Z axis in mesh plot - comp.soft-sys.matlabIs there a way, just for looks, to remove the XZ and YZ axes/faces in a mesh plot? The result I'm looking for would be to just have the rectangle of ... Setting color scale in mesh plots - comp.soft-sys.matlab ...Hey all, I am using meshc() to plot several 2D matrices. I want all of them to be on the same scale, and I want the colors of all the plots of be s... Setting z scale in mesh plots - comp.soft-sys.matlabHello all, I am plotting data files using meshc to get a 3D image of the data, and I am running into difficulties setting the scale of the plots. C... Plotting data with nonuniform mesh/grid? - comp.soft-sys.matlab ...Hi, I have a Problem. Im new to Matlab and have to solve a Problem: I have a matrix with Data 354x350. The axes are nonlinear x_axis 354x1 and ... Mesh with different color at x=0 and y=0 - comp.graphics.apps ...Hello, I would like to ask a question about mesh visualisation. After plotting with splot some data and using dgrid3d there is a grid appearing. ... Export COMSOL FEM mesh to MATLAB - comp.soft-sys.matlabExport COMSOL FEM mesh to MATLAB - comp.soft-sys.matlab Delaunay/interpolation from triangular mesh ... Extracting data from a 2D surface plot in Matlab - comp.soft-sys ... How to create 3D mesh for Sphere - comp.soft-sys.matlabI'd like to create a rectangular mesh of a ... error because surf needs matrix as ... 3D mesh for Sphere - comp.soft-sys.matlab How to make a smooth rotation of a 3D plot ... Contour plot with color scale - comp.soft-sys.math.mathematica ...Needs["PlotLegends`"]; mydata = RandomReal[{0.6, 180.}, {10, 5}] ShowLegend[ MatrixPlot[mydata, AspectRatio -> 1, Mesh -> All, ColorFunction ... I need to generate a circle using 3d mesh - comp.soft-sys.matlab ...Need suggestions for a complicated plot - comp.soft-sys.matlab ... I need to generate a circle using 3d mesh - comp.soft-sys.matlab ..... to get the rectangular meshes but ... How to generate a triangular mesh of a 3d surface - comp.soft-sys ...How to generate a triangular mesh of a 3d surface - comp.soft-sys ... Plotting 3D spherical coordinates - comp.soft-sys.matlab ... You may plot this surface simpler. Mesh plot - MATLAB - MathWorks - MATLAB and Simulink for Technical ...mesh -Mesh plot. Alternatives. To graph selected variables, use the Plot Selector in the Workspace Browser, or use the Figure Palette Plot Catalog. Creating Mesh and Surface Plots :: Graphics (MATLABĀ®)Visualize functions of two variables. ... About Mesh and Surface Plots. MATLAB defines a surface by the z-coordinates of points above a grid in the x-y plane, using ... 7/22/2012 8:51:53 PM
|