CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

contour plotts using matlab

Register Blogs Community New Posts Updated Threads Search

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

  Reply With Quote

Old   March 20, 2002, 21:17
Default Re: contour plotts using matlab
  #2
Junseok Kim
Guest
 
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
  #3
Steven Jachec
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
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 00:53.