DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   How to read Matlab Variabls in C++ (http://www.daniweb.com/forums/thread46149.html)

mmh771 May 23rd, 2006 10:05 am
How to read Matlab Variabls in C++
 
I've made an image processing application in Matlab, that reads an
image and stores the width and height of the image in 2 variables, x
and y ....

Now i want to read those 2 variables in another application (a C++
application) that is running with the Matlab application...

Does anyone know how to do so?

b4codes May 27th, 2006 7:36 pm
Re: How to read Matlab Variabls in C++
 
You have made an application ???????

its just a 2 line simple comand, example:

1. Image = imread('Image.gif'); % this loads the image matrix

2. [x,y] = size(image); % this stores the dimensions in x and y

now if you want to read them in c++ or any other app. save them as ascii and just call them in your program.

Try visiting the image processing sections of mathworks (matlab's parent company) or kluid (www.kluid.com) its a matlab forum.

b4 : ]


All times are GMT -4. The time now is 12:01 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC