problem with compiler

Started by ganesan in Matlab DSP19 years ago

hello all, i want to interface a fortran program with my other matlab programs. i installed digital visual fortran v6.5. i have...

hello all, i want to interface a fortran program with my other matlab programs. i installed digital visual fortran v6.5. i have matlab v5.3 on windows NT. i set the mexopts.bat file using mex -setup. when i tried compiling the file, i got an error as: Creating library _l


use mex to compile math lib function

Started by Bing Jian in Matlab DSP17 years ago

Hi, there, Assume I have a mexmain.c which contains mexFunction(), in mexFunction(), I call another function e.g. test()...

Hi, there, Assume I have a mexmain.c which contains mexFunction(), in mexFunction(), I call another function e.g. test() defined in another c file e.g. test.c. The test.c is very simple #include int test() {


loading dll in matlab

Started by Umair Farooq Siddiqi in Matlab DSP15 years ago

Hi, I have created a dll with MATLAB mex function. Now when I am loading it with loadlibrary function it gives error: ...

Hi, I have created a dll with MATLAB mex function. Now when I am loading it with loadlibrary function it gives error: filename requires exactly one input argument! Anybody has any idea how can I use dll with matlab. Thanks Umair


S-Function mexPutVariable Question

Started by telmatrix in Matlab DSP16 years ago

Hi Ya'll, The following code below is from the mdlOutputs routine in my C MEX S-function. It is working well, and the question...

Hi Ya'll, The following code below is from the mdlOutputs routine in my C MEX S-function. It is working well, and the question is specific to concatenating the data that is being written to the base workspace. Currently "data" is being "overwritten"


Antwort: linking of C, C++ ,VB routines into matlab

Started by Anonymous in Matlab DSP18 years ago

Mex-Files are used to include C-files or Fortran-files into Matlab. A nutshell will be placed around your original code, which...

Mex-Files are used to include C-files or Fortran-files into Matlab. A nutshell will be placed around your original code, which makes Matlab to access the data structures of your original coding. Afterwards you have to compile it using the Matlab mexCompiler, which leads in a D


Matlab Compiler Questions

Started by gt0398b in Matlab DSP17 years ago

I am running MATLAB R12.1. I'm having trouble with compiling. I would appreciate any help anyone can give. 1. When I do the...

I am running MATLAB R12.1. I'm having trouble with compiling. I would appreciate any help anyone can give. 1. When I do the "mbuild -setup" or "mex -setup" it is not giving me an option for my C++ compiler. I have Visual C++.NET, the newest version of visua


Can MATLAB M-file be compiled to an .exe file?

Started by 6th Hokage in Matlab DSP14 years ago 1 reply

Can anyone tell me whether a M-file can be converted to .exe file? If yes, can tell me how? Thanks. And what is a MEX-file anyway? Thanks

Can anyone tell me whether a M-file can be converted to .exe file? If yes, can tell me how? Thanks. And what is a MEX-file anyway? Thanks


Tcpip toolbox and RCM3400

Started by Andrew Yip in Matlab DSP14 years ago

Hi, i'm trying to set up a TCP connection between RabbitCore(RCM3400) as client and Matlab as Server. The goal is to try to get matlab to...

Hi, i'm trying to set up a TCP connection between RabbitCore(RCM3400) as client and Matlab as Server. The goal is to try to get matlab to read the multiplexed channels of the analog to digital converter. I downloaded Tcpip toolbox version 1.2.x 2000-12-14 for MATLAB 5.x 6.x and sucessfully compiled the mex file using C:\Program Files\Microsoft Visual Studio. Thanks for that. ...


Inlined - Non inlined S functions ,, TLC file generation

Started by lee_xmen in Matlab DSP15 years ago

Hi , I want to know , 1] how do you generate a ".tlc" file from a C-MEX S function ? 2] what is the difference...

Hi , I want to know , 1] how do you generate a ".tlc" file from a C-MEX S function ? 2] what is the difference between inlined and non-inlined S functions? Thanks, mittu


C structure in matlab

Started by rezaii57 in Matlab DSP14 years ago

hello I want to write a program in C++ that get one matrix from matlab as input , Generate and send 'complex structure'(nested) to matlab...

hello I want to write a program in C++ that get one matrix from matlab as input , Generate and send 'complex structure'(nested) to matlab . how can i send this complex structure to matlab ?(my structure is not simple and i can not use mex file). your scencerely , zeinab


C MEX S-Function RTW writing data in a file

Started by IRINA in Matlab DSP11 years ago

Hello, I am using for my project, a s-function builder block, in a simulink model. I have to read data from a GPS connected to a dSPACE 1103...

Hello, I am using for my project, a s-function builder block, in a simulink model. I have to read data from a GPS connected to a dSPACE 1103 board (via rs232 port) and convert the values of latitude and longitude in carthesien coordonates (x,y,z). So, I in my s-function builder i inserted the C code, in output tab, and my question is, when I build the model with real time workshop, ...


from Saadi on 'goto' in matlab

Started by saadihossain in Matlab DSP12 years ago

Hello friends I hope all is doing well. It's really good to have such a valuable forum where all us with common-interest can join. I have...

Hello friends I hope all is doing well. It's really good to have such a valuable forum where all us with common-interest can join. I have a c-mex sfunction which has a command with 'goto'. I want to make an m-file similar to that c file. for example: tenim: if (fabs(LU_A[kay][idebut]) > = fabs(LU_A[jay][idebut])) { if (jay == nnn) { iamax = kay; }


A very urgent problem about C++ Mex file

Started by andey in Matlab DSP17 years ago

Dear all: I want to call my Borland C++ program from Matlab. Actively My C++ program is a huge project file which includes a...

Dear all: I want to call my Borland C++ program from Matlab. Actively My C++ program is a huge project file which includes a lot of class definitions and calls a lot of class functions. Now I need call it from Matlab so I modified this project file to one *.cpp file which


'midl' is not recognized as an internal or external command, help please :)

Started by chuxeei in Matlab DSP13 years ago

Hello! When I am creating COM to be used for c#, i am always getting this error... 'midl' is not recognized as an internal or external...

Hello! When I am creating COM to be used for c#, i am always getting this error... 'midl' is not recognized as an internal or external command, operable program or batch file. D:\PROGRAM FILES\MATLAB71\BIN\WIN32\\..\MEX.PL: Error: IDL compile of 'mwcomtypes.idl' failed. I have exhausted the net, but there arre no solving solutions.. Man im running out of ideas.. please hel...


problem in compiling

Started by Leila Moballegh in Matlab DSP10 years ago

Hi I have written a program in MATLAB using fit and fitoptions functions   opts = fitoptions('exp1','Norm','on','start',[-1...

Hi I have written a program in MATLAB using fit and fitoptions functions   opts = fitoptions('exp1','Norm','on','start',[-1 100]); [fresult,gof,output] = fit(x,yy,'exp1');   I didn?t get any error in matlab. As I plan to deploy my program using visual basic I created mex files of fit and fitoptions through  ? mcc ?x  fit  and mcc ?x fitoptions I compiled my functions through