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
0
votes
1 answer

localize iOS app based on MCC MNC

I'm looking for a way to based the localization of my iOS app, on the MCC or MNC. I already know how to do it with the language/region of the device, but I was wondering if it possible to localize with the carrier too. It is possible on Android, so…
0
votes
1 answer

How does a MATLAB generated binary knows its fullpath?

I have a MATLAB compiler generated binary (exe/jar/dll). I would like to be able to get the full path of the binary itself at runtime. Any ideas? Help will be very appreciated.
Hanan Kavitz
  • 1
  • 1
  • 2
0
votes
1 answer

How can i copy m-files to a specific folder in MATLAB compiled application?

I'm using MATLAB R2015a application compiler. After choosing my main m-file, MATLAB found some files required for application to run but after compiling and running my application, the compiled application can't find some specific m-files from an…
Eghbal
  • 3,892
  • 13
  • 51
  • 112
0
votes
1 answer

Unresolved symbol while using a matlab function turned into a shared library

I'm using MATLAB R2012A and Visual Studio 2013. I have a simple function in a simulation.m file. function [ r ] = simulation( ) r = 42; end Since VS2013 is not supported by MATLAB 2012 I've setup my version of VS in MATLAB using these…
knarf
  • 2,672
  • 3
  • 26
  • 31
0
votes
1 answer

Undefined function or variable in compiled matlab file

I'm trying to execute a compiled matlab script. When I run the same script in the matlab command window, it works fine, nevertheless, when I try to run the compiled version, I get this error message: "Undefined function or variable". When i was…
0
votes
1 answer

How to debug a MATLAB deploytool project that works in MATLAB but fails at the command line?

I have a deploytool project that compiles and packages a MATLAB command line application correctly to an windows 64 installable exe if I run deploytool inside MATLAB. The packaging process also works correctly if I build inside the MATLAB deploytool…
Nigel Davies
  • 1,640
  • 1
  • 13
  • 26
0
votes
1 answer

Optionally pass Command-Line parameters to Standalone Matlab application

I'm trying to understand how to write a script such that when compiled into a standalone windows executable, the user can optionally pass a command-line-argument, for usage in the script. For example, the 'exist' line below generates a matlab error:…
ben
  • 473
  • 2
  • 9
  • 21
0
votes
0 answers

How to include spaces (and other non-identifier characters) in MATLAB application name?

When we choose Name for our application we can't use space or other some characters for it. We need something like underline to separate words ! How can I get rid of this? It hasn't a good appearance for a compiled app that has a shortcut on desktop…
Eghbal
  • 3,892
  • 13
  • 51
  • 112
0
votes
0 answers

function 'normrnd' in excutable compiled by matlab mcc doesn't work

I have a file named myfunction.m, the content is: function []=myfunction() Z = normrnd(0,1) Each time I issue the comman myfunction in matlab, I get a random result. Then, I compile myfunction.m using this command: mcc -m myfunction.m and I obtain…
0
votes
3 answers

MATLAB arbitrary code execution

I am writing an automatic grader program under linux. There are several graders written in MATLAB, so I want to tie them all together and let students run a program to do an assignment, and have them choose the assignment. I am using a C++ main…
0
votes
1 answer

Single Sign On on Google Apps

Can I from my website, once a user is authenticated, let him login into GMail, Google+, Youtube or other Google service skipping the login screen? Does Google's SSO work this way? If this is possible, can this be done with my login and do the SSO on…
0
votes
1 answer

mcc function can't return value,why?

I use matlab mcc to create a standalone application exe file, then I use php to call the exe file. but I can't get the function return value,it's always empty!! here is my test example in m file function result=mysum(in) if nargin<1 …
0
votes
0 answers

Calling Matlab class function from C

I have the following Matlab code in myMatlabClass.m: classdef myMatlabClass < handle properties value end methods function obj = myMatlabClass() obj.value = 0; end function value = getValue(obj) value = obj.value; end …
0
votes
1 answer

mcc -mv in linux machine R2013a

When I am trying to make executable files of my .m-files on a Linux machine, some of the the .m-files are working absolutely fine. However, one file which has camera input inside the .m-file is giving me this error: Depfun error: 'Unexpected…
MMH
  • 1,676
  • 5
  • 26
  • 43
0
votes
2 answers

How to include excluded toolbox m-files in MATLAB compiler

I want to use Fuzzy Logic Toolbox in C#. To do this, I created a NET-library using deploytool, but it does not include the file fuzzy.m, which I need to work. And in the log mccExcludedFiles.log the following information: This file contains the…
Anatolii Humennyi
  • 1,807
  • 3
  • 26
  • 37