Not Yet Answered # convert matlab to c++ code

ravikant gupta daviddoria 334 mohammad110 OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...

0

hi.

i work on image processing.how can i convert my mfile to c++ code?i try with :

mbuild -setup

mcc -B cpplib:mfile a.mand matlab compiler give me cpp code but i can not run it. how can add lib & header file that it can run?

is there any way for convert matlab to c++ code?

heyy

i m too tryin to covert matlab code into c/c++ code

can u help me

0

I may be mistaken, but here is my understanding...

You can't convert "matlab code" to "c++ code". What you can do is write c++ code and then give it a matlab interface and "compile" it with the Matlab MEX compiler. The result is a function that you can call from matlab but is actually written in c++.

Look up "matlab mex" and you may find more details.

Good luck,

David

0

I have a Matlab code and want its Pascal code. Can anyone help me? Thanks a lot. Here is the matlab code:

enter code here

```
A_Matrix=input('Please Enter Matrix A (5*5): \n');
sizeA=size(A_Matrix);
B_Matrix=input('Please Enter Matrix B (5*5): \n');
sizeB=size(B_Matrix);
if (sizeA(1)==5 && sizeA(2)==5)
if (sizeB(1)==5 && sizeB(2)==5)
Operation=input('Please Enter the Operation: \n A:for Add \n M: for Multiplication \n T:for Transpose \n D:for Detreminant \n','s');
if (Operation=='A')
A_Matrix+B_Matrix%#ok
elseif (Operation=='M')
A_Matrix*B_Matrix%#ok
elseif (Operation=='T')
A_Matrix'%#ok
B_Matrix'%#ok
elseif (Operation=='D')
det(A_Matrix)
det(B_Matrix)
end
else
error('Please Enter a Valid Matrix of size 5*5 for B');
end
```

This article has been dead for over six months. Start a new discussion instead.

Recommended Articles

Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.

btn_addline :

`Private Sub btn_addline_Click(ByVal ...`

I don’t want at this stage work on a big separate project as I've already got plenty ...