|
[Sponsors] |
March 20, 2002, 10:04 |
contour plotts using matlab
|
#1 |
Guest
Posts: n/a
|
hi fox
as this is a new plotts to me i appreciate any help. i need to plot a contour with: x-axis is the position (-10, 10); y-axis is the time, starting from the lowest till it reach the given time. z-axis is the density solution. the data generated using f90 in a file. any matlab help please. many thanks. xxx |
|
March 20, 2002, 21:17 |
Re: contour plotts using matlab
|
#2 |
Guest
Posts: n/a
|
Would you send your data file to me, I will write a matlab code for you.
|
|
March 27, 2002, 11:33 |
Re: contour plotts using matlab
|
#3 |
Guest
Posts: n/a
|
To contour in MATLAB, you x, y, and z must be matrices of the same size. There are MATLAB tools to help with this. For example,
x = -10:10 y = 0:60 then you need to meshgrid the x & y data, like [X,Y] = meshgrid(x,y); your z data (density) should then be the same size as X & Y type pcolor(X,Y,Z); shading interp;colorbar Key words: meshgrid, pcolor, mesh, surf Steven Jachec |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Matlab contour plots | Chris | CFX | 17 | October 29, 2020 05:32 |
[GAMBIT] Plotting/Meshing a Contour Map (3D hill) | VU_Engineer | ANSYS Meshing & Geometry | 6 | January 28, 2014 07:59 |
Matlab PP: Generating X-vel Contour Error Plot | Bennp2000 | FLUENT | 5 | March 4, 2011 16:58 |
Importing contour maps into Tecplot | jcostex | Tecplot | 1 | May 20, 2009 13:48 |
Contour plotting with origin or matlab | M. A. Waheed | Main CFD Forum | 0 | November 1, 2005 03:42 |