Thread Subject: C/C++ to matlab

Subject: C/C++ to matlab

From: Ongun Palaoglu

Date: 5 Oct, 2009 23:52:02

Message: 1 of 9

Hello, I have a code. I need to change that code for matlab. I am wandering if there is an article so I can read before start. Thank you

Subject: C/C++ to matlab

From: Maya

Date: 6 Oct, 2009 00:58:03

Message: 2 of 9

"Ongun Palaoglu" <ongun@mac.com> wrote in message <hae0r2$erv$1@fred.mathworks.com>...
> Hello, I have a code. I need to change that code for matlab. I am wandering if there is an article so I can read before start. Thank you

check matlab help and read mex file creation. its pretty simple to call c from matlab.

Subject: C/C++ to matlab

From: Ongun Palaoglu

Date: 6 Oct, 2009 01:17:21

Message: 3 of 9

"Maya " <priyaravi_22@yahoo.co.in> wrote in message <hae4mr$nf6$1@fred.mathworks.com>...
> "Ongun Palaoglu" <ongun@mac.com> wrote in message <hae0r2$erv$1@fred.mathworks.com>...
> > Hello, I have a code. I need to change that code for matlab. I am wandering if there is an article so I can read before start. Thank you
>
> check matlab help and read mex file creation. its pretty simple to call c from matlab.

Dear Maya, I do not want to call the function. I want to change the language to Matlabs own language .

Subject: C/C++ to matlab

From: Bill McKeeman

Date: 7 Oct, 2009 19:11:02

Message: 4 of 9

"Ongun Palaoglu" <ongun@mac.com> wrote in message <hae5r1$59l$1@fred.mathworks.com>...
> "Maya " <priyaravi_22@yahoo.co.in> wrote in message <hae4mr$nf6$1@fred.mathworks.com>...
> > "Ongun Palaoglu" <ongun@mac.com> wrote in message <hae0r2$erv$1@fred.mathworks.com>...
> > > Hello, I have a code. I need to change that code for matlab. I am wandering if there is an article so I can read before start. Thank you
> >
> > check matlab help and read mex file creation. its pretty simple to call c from matlab.
>
> Dear Maya, I do not want to call the function. I want to change the language to Matlabs own language .

In any particular case, someone who knows both languages can do a reasonable job of hand-translating from C++ to MATLAB. I do not know of any articles that will help you. A program to do the job could be written, but the output would be less than perfect: either it would fail to translate something or it would make such ugly M code that you would not want to use it.

Subject: C/C++ to matlab

From: Dave

Date: 7 Oct, 2009 20:15:44

Message: 5 of 9

I'm translating some C code to Matlab right now, and gotta tell you, something like a "C for Matlab users" would be sweet like this one for R:

www.math.umaine.edu/~hiebeler/comp/matlabR.pdf

Subject: C/C++ to matlab

From: Ongun Palaoglu

Date: 9 Oct, 2009 21:35:02

Message: 6 of 9

We are planning to connect a webcam to matlab( we are going to make a motion detetction system on matlab), logitech's website there is a code which controls the motor of the webcam. which on is more usefull calling the function or changing the language to matlab?

Subject: C/C++ to matlab

From: Rune Allnor

Date: 9 Oct, 2009 21:40:12

Message: 7 of 9

On 9 Okt, 23:35, "Ongun Palaoglu" <on...@mac.com> wrote:
> We are planning to connect a webcam to matlab( we are going to make a motion detetction system on matlab), logitech's website there is a code which controls the motor of the webcam. which on is more usefull calling the function or changing the language to matlab?

Check what toolboxes are available. Ask the manufacturer/vendor
of the camera if there are drivers available to link the camera
up through e.g. the instrumentation toolbox, or image aqcuisition
toolbox.

Rune

Subject: C/C++ to matlab

From: Ongun Palaoglu

Date: 9 Oct, 2009 21:44:02

Message: 8 of 9

http://www.quickcamteam.net/documentation/how-to/how-to-control-pan-tilt-zoom-on-logitech-cameras/PTZ-1.1.zip


this is the file I want to call.

Subject: C/C++ to matlab

From: Mark Jones

Date: 12 Oct, 2009 14:18:10

Message: 9 of 9

Ongun Palaoglu wrote:
> We are planning to connect a webcam to matlab( we are going to make a motion detetction system on matlab), logitech's website there is a code which controls the motor of the webcam. which on is more usefull calling the function or changing the language to matlab?

Hi Ongun,

The Image Acquisition Toolbox supports Pan, Tilt, and Zoom for at least
some of the Logitech webcams through the winvideo adaptor:

http://www.mathworks.com/products/imaq/supportedio13875.html

To learn more about the toolbox, also see:

http://www.mathworks.com/access/helpdesk/help/toolbox/imaq/index.html?/access/helpdesk/help/toolbox/imaq/

Mark

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com