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.m

and 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?

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.m

and 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

hey
i am trying to convert matlab code into C++ code
please help me........

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

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.