Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

c++ codes with matalab

Status
Not open for further replies.

sayim133

Newbie level 3
Joined
Mar 25, 2008
Messages
4
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,308
+matlab +c++ c++ in matlab

Hello Dear.

Could any one help me?
I have some codes in c++, I need to use it in matalab?
How can i do that please.

best regards
 

matalab c++

go thro matlab C/C++ compiler docs, and there r lots of examles on net and mathworks.com
 

just rewrite them in Matlab as m files, as it's simpler and faster (then looking for a way for conversion).
Matlab is an interpreted language and C++ code needs to be compiled to run there is no real way for direct implementation.
 

ha ha ha... pls search options first... MATLAB a wonder tool isn't...

open your matlab command window...
type mex -setup
press enter...

you will get several options.. chose your peferable one...

next thing.. you can change C files in matlab
use

mex filename.c


this command will convert C files to MATLAB excutable file....

one more thing is possible with the matlab...

you can load .dll file & header file of C++ in Matlab..

HAPPY

:D:D
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top