How to read Matlab Variabls in C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2006
Posts: 1
Reputation: mmh771 is an unknown quantity at this point 
Solved Threads: 0
mmh771 mmh771 is offline Offline
Newbie Poster

How to read Matlab Variabls in C++

 
0
  #1
May 23rd, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 35
Reputation: b4codes is an unknown quantity at this point 
Solved Threads: 1
b4codes b4codes is offline Offline
Light Poster

Re: How to read Matlab Variabls in C++

 
0
  #2
May 27th, 2006
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 : ]
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC