|
[Sponsors] |
October 15, 2005, 23:09 |
visualization with matlab
|
#1 |
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 |
|
October 18, 2005, 04:22 |
Re: visualization with matlab
|
#2 |
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.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to start Fluent with Matlab?? | Jay Hu | FLUENT | 8 | November 9, 2022 07:30 |
Quick OpenFoam to MatLab lesson plz :) | Rickard.Solsjo | OpenFOAM | 6 | October 26, 2020 12:58 |
Visualization using Matlab | Chan Keen Ian | Main CFD Forum | 14 | December 30, 2010 08:39 |
caling matlab in Fortran | HaKu | Main CFD Forum | 0 | July 16, 2009 16:35 |
CFD with MATLAB | Jack | Main CFD Forum | 2 | April 26, 2006 03:19 |