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

matlab mcc compiled standalone executable: Unrecognized function or variable

I have the following file helloworld.m: % helloworld.m function helloworld fprintf('\n=============') fprintf('\nHello, World!\n') fprintf('=============\n') end the matlab runtime is in my path: echo…
mkk
  • 879
  • 6
  • 19
0
votes
1 answer

How to communicate between Raspberry pi and PIC device (PIC16F18325) via I2C

I'm trying to communicate with Raspberry pi 3B+ from PIC device via I2C. My PIC device is PIC16F18325. First, I generated i2c library by using MCC (mplab code configuration). raspberry pi is set master, pic device is set slave. Question I want to…
0
votes
0 answers

add path to subfolder containing dependeble .m files that are not bundled in the compilation

I am trying to deploy an application which are dependent on specific data input files in the form of .m files. I know how to bundle all of the files "freezing" them within the compilation: like so mcc -m file.m -a path_to_data*.m. However, I was…
0
votes
1 answer

Mikrocontroller (PIC16F1827) ADC scrambled output with MCC in MPLAB

Im trying to construct an AD-converter from a potentiometer to an Arduino. I´m trying to learn MCC in MPLAB at the same time. So far I have generated a code that fits my PIC (I think...). My problem is now that my bit represented output is…
Filip Kaiser
  • 37
  • 1
  • 8
0
votes
1 answer

Matlab `mcc`: All m-files to include when compiling executable?

I have a Matlab script go.m that creates custom objects and runs a suite of simulations. There is interest in porting it to a different network where the Matlab licenses are few. Our strategy is to compile the script into a stand-alone *.exe so…
user36800
  • 2,019
  • 2
  • 19
  • 34
0
votes
1 answer

How to add user created .mat files to the search path after compilation

How can I allow user to add additional dependenies after the source code was compiled with mcc. I was thinking about an empty folder next to the executable, where the users can add the needed .mat-files, but I can't add the folder path to my…
Capone
  • 15
  • 5
0
votes
1 answer

I2c Slave data PIC MPLAB X

I am trying to migrate from PIC16F886 to PIC18F24K40 . NOw here I am trying to communicate PIC18F24K40 with DS1307 and Display it on 4 Segment Display. I have tested my code on PIC16F886 but not worked on PIC18F24K40 . SInce PIC18F24K40 uses MPLAB…
Ajit N
  • 1
  • 3
0
votes
1 answer

How do I compile and run a Matlab script in Sublime Text 3 using mcc?

I set up mcc and made a new Build System trying to get the same experience as the Command Window in Matlab. Building an .sh file and running it with: "shell_cmd": "mcc -m '$file'" takes a long time and does not work properly. Surely, there must…
countmora
  • 37
  • 6
0
votes
1 answer

Compiling .m files that call simulink models

Will a .m file that calls a simulink model using sim() sill compile and function properly using mcc? Alternatively would compiling the simulink files to a dll, calling that dll from the .m file and then using mcc produce the desired results?
pmaurais
  • 734
  • 2
  • 9
  • 30
0
votes
1 answer

Can parfor in matlab compiled code access local worker pool

I run on my computer very often Matlab programs compiled using mcc, in which I execute parfor. Each program has slow startup time, I think because the parallel worker pool is created (it takes about 20 seconds just to startup the parallel pool). It…
David
  • 157
  • 1
  • 2
  • 7
0
votes
1 answer

How can transfer data between "mwArray *" and "mxArray *"?

I have an instance of a class and I want to pass it to a function using mexCallMATLAB function. The class is originally in Matlab but since the data is in my C++ wrapper, I used this approach and pack my data to it. Therefore type of final object is…
Bonje Fir
  • 787
  • 8
  • 25
0
votes
0 answers

How to get Mcc and Mnc below LOLLIPOP_MR1 devices in android?

I am building an android application where I need to get Mcc and Mnc value of SIM. For single SIM I got perfect code but how to use that for dual SIM. I am using below code working fine above lollipop devices to get these two value. if…
Hitesh Matnani
  • 309
  • 1
  • 5
  • 20
0
votes
1 answer

Retrieve LABELS of each Account in Adwords Script MCC

I want to make an Adwords Script for a MCC account which contains several child-accounts labeled with multiple labels. I am looking for a Loop of all child-accounts and retrieving all labels per each child-account. Here I will simulate an example…
Sergiu Costas
  • 530
  • 4
  • 8
  • 26
0
votes
1 answer

mcc producing an unresponsive executable

I am trying to compile a Matlab function using the mcc function. My function writes a line of text to a file. function hello() ofid = fopen('hello.txt','w'); fprintf(ofid, 'Hello there, this is matlab.\n'); fclose(ofid); end It runs as…
Pavithran Iyer
  • 402
  • 5
  • 14
0
votes
1 answer

Matlab: parfeval in combination with standalone executable (MCC)

i'm trying to create a matlab stand-alone executable containing parfeval statements and a waitbar. The following code runs perfectly within the matlab runtime. However, after compilation using mcc -m test_mcc.m I receive the following error: error: …
Joost Moesker
  • 661
  • 3
  • 7