Questions tagged [mcc]

mcc stand for MATLAB® Compiler™. The command line utility that can compile MATLAB code into stand-alone application or C/C++ library.

Official product site: http://www.mathworks.com/help/toolbox/compiler/

92 questions
1
vote
1 answer

Matthews Correlation Coefficient in Lasso model, logistic regression with R

I am using data (birthwt) from the library (MASS) and I'd like to calculate Mathews Correlation Coefficient (MCC) with R in a Lasso model. I am really confused. Thks in advance birthwt=birthwt[,-10] boot=sample(nrow(birthwt),…
lomha
  • 11
  • 1
1
vote
3 answers

I have trouble using mcc compiler in MATLAB (Error using ==> mcc The output directory does not exist)

I'm trying to build the .NET assembly file by executing this code in matlab2010b workdir = 'C:\Users\H\Documents\Source Code\MatlabFiles'; outdir = fullfile(workdir, 'Output'); dnetdir = fullfile(workdir, 'dotnet'); %% Determine file names mfile =…
Hamid
  • 479
  • 6
  • 21
1
vote
0 answers

How to compile a Matlab code with Testing classes?

I'm trying to compile a Matlab code with mcc, including some tests classes that I wrote with Matlab's unittest module. But I don't know how to process... I have a main.m with many dependencies to others functions. My tests classes are in an other…
Mizu
  • 13
  • 2
1
vote
0 answers

Why do I receive the error 'count must be integer multiple of packet size' when using USB1408FS?

When using USB-1408FS I get the following error: count must be integer multiple of packet size for continuous mode. I know that the packet size is 32 and the count must be a multiple of that. The code only works when the number of repeats (in this…
1
vote
1 answer

Issue in configuring pins in MPLAB code configurator

I am using PIC16F1829 (SSOP-20 package) and trying to configure pin RC1 as C12IN1-(comparator C1 ) using MPLAB code configurator. Now the problem is ,I am able to configure 3 pins RA1, RC2, RC3 as C12IN0-,C12IN2-,C12IN3- respectively but not RC1 as…
PICFanPri
  • 21
  • 1
1
vote
1 answer

How to run run mcc in a loop in Matlab

I need help to use mcc -mv in a for loop. Specifically, I have matlab files names as Myfiles_k.m where k runs from 1:n. I want to do something like the following for i=1:n fname = ['Myfiles_',num2str(i),'.m']; mcc -mv fname end This leads to…
P_0frF67
  • 11
  • 3
1
vote
1 answer

Compiled MATLAB error: Undefined function 'ft_datatype_sens' for input arguments of type 'struct'

I have a MATLAB program written by one of my users which makes use of the SPM8 toolbox. If run directly, it works fine. However, when compiled and then run, the following error occurs: Undefined function 'ft_datatype_sens' for input arguments of…
loris
  • 450
  • 8
  • 20
1
vote
3 answers

How can I make sure that Matlab mcc doesn't build incomplete stand-alone executables?

we use a scripting environment to automatically build, run and verify a stand-alone executable. We are working with Matlab R2010a x64. The Matlab compiler mcc is called from the Windows command line building a stand-alone application: mcc -m -v -w…
Zweikeks
  • 300
  • 1
  • 11
1
vote
1 answer

Matlab including wrong file into mcc

Scenario: I'm compiling a project which uses a lot of external files\functions. When I compile, I use a function which includes all of said files into the mcc command with the '-a' argument. Everything seems to be in place and working fine after…
Yuval Weissler
  • 291
  • 3
  • 12
1
vote
1 answer

3D rotation slow when compiling with mcc R2015b

I'm experiencing a strange issue when compiling one of my application with mcc compiler deployed with R2015b, the rotation of 3D views (i.e. using rotate3D button in toolbar) is now extremely slow which was not the case when compiling exactly the…
CitizenInsane
  • 4,755
  • 1
  • 25
  • 56
1
vote
4 answers

matlab shared c++ libraries and OpenCL

I have a project that requires lots of image processing and wanted to add GPU support to speed things up. I was wondering if i compiled my matlab into c++ shared library and called it from within OpenCL program, does that mean that the matlab code…
omarzouk
  • 933
  • 10
  • 23
1
vote
1 answer

Call dll function from matlab

I have an m file from which I use to create dll using the Matlab deploytool. the code simply reads as: function hello disp('Hello') end there are six functions in the compiled dll exported as: uint8 helloInitialize [uint8, voidPtr, voidPtr]…
user3723486
  • 189
  • 1
  • 3
  • 12
1
vote
2 answers

Deploy an matlab file to executable

I want to deploy an m file into an executable. I am using mcc command: mcc -m epidemic.m. Epidemic is my function which takes no arguments and returns a vector and write that vector to txt. Mcc creates epidemic.exe and when I am running that exe it…
Jose Ramon
  • 5,572
  • 25
  • 76
  • 152
1
vote
0 answers

Matlab m-file compiled with mcc crashes with java error only if running from Visual Studio

I have a CFD Fortran code that calls a batch file this way: res = SYSTEM('start matlab.bat') The bat file then runs a deployable Matlab code, a little code to plot some data, with this command: start MYmatlabCODE.exe When I run my compiled CFD…
Millemila
  • 1,612
  • 4
  • 24
  • 45
1
vote
1 answer

How to return to prompt after running an exe file compiled with mcc (Matlab compiler)

I have an executable created with mcc. The .m file has a simple function that reads and plots values. After I run it from DOS, it freeze without returning execution to DOS. 2 questions: 1) How can i return execution to dos? I tried "return" and…
Millemila
  • 1,612
  • 4
  • 24
  • 45