943,931 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2593
  • C++ RSS
May 23rd, 2006
0

How to read Matlab Variabls in C++

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mmh771 is offline Offline
1 posts
since May 2006
May 27th, 2006
0

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 : ]
Reputation Points: 10
Solved Threads: 1
Light Poster
b4codes is offline Offline
35 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Linking errors while creating dll using ATL project
Next Thread in C++ Forum Timeline: PLZ help me !!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC