CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

contour plotts using matlab

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 20, 2002, 10:04
Default contour plotts using matlab
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

  Reply With Quote

Old   March 20, 2002, 21:17
Default Re: contour plotts using matlab
Junseok Kim
Posts: n/a
Would you send your data file to me, I will write a matlab code for you.

  Reply With Quote

Old   March 27, 2002, 11:33
Default Re: contour plotts using matlab
Steven Jachec
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
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[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 12:48
Matlab contour plots Chris CFX 10 January 22, 2007 04:43
Contour plotting with origin or matlab M. A. Waheed Main CFD Forum 0 November 1, 2005 03:42

All times are GMT -4. The time now is 02:07.