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

visualization with matlab

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2005, 22:09
Default visualization with matlab
  #1
lola
Guest
 
Posts: n/a
dear all,

I have obtained some results of my numerical simulation and now I need to visualize them. As I don`t have any commercial tools at my disposal other than Matlab, I`m trying to visualize the results using that software.

I want to make a 2-D contour plot of a field data, and I have written a M-file like the following:

------------------------------------------------

load('zet') / 'zet is the field data'

n=2349;

rangex=[0 0 n 0];

rangey=[0 1 n 1];

rangez=[0 2 n 2];

x=dlmread('zet',' ',rangex); /x is x-coordinate array

y=dlmread('zet',' ',rangey); /y is y-coordinate array

z=dlmread('zet',' ',rangez); /z is the data array

contour(x,y,z);

-----------------------------------------------------

The file was successfully compiled, and the graph window appeared, but there was nothing in the window except axis x and y.

Could anyone help me solve this problem please?

Thanks so much for your kind help

regards,

lola

  Reply With Quote

Old   October 18, 2005, 03:22
Default Re: visualization with matlab
  #2
javaid
Guest
 
Posts: n/a
MATLAB include facilities using MEX file to call C & FORTRAN routines from within MATLAB. Also you can use MATLAB engine to call MATLAB functions (including those of Data visualization) through C or FORTRAN program. The MATLAB document which discuss MATLAB API and external programming provided neccessary details along with examples.
  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
How to start Fluent with Matlab?? Jay Hu FLUENT 8 November 9, 2022 06:30
Quick OpenFoam to MatLab lesson plz :) Rickard.Solsjo OpenFOAM 6 October 26, 2020 11:58
Visualization using Matlab Chan Keen Ian Main CFD Forum 14 December 30, 2010 07:39
caling matlab in Fortran HaKu Main CFD Forum 0 July 16, 2009 15:35
CFD with MATLAB Jack Main CFD Forum 2 April 26, 2006 02:19


All times are GMT -4. The time now is 05:24.