I have different toolboxes and dependencies between toolboxes is not allowed. Each new function in a toolbox also needs to have a test within the testsuite of that toolbox to ensure nothing breaks when code is changed.
When running a test within a toolbox I want the test to ensure that it only can access code from that toolbox. How to do this?
Related
I would like to use the Application Compiler (Appdesigner -->Standalone Desktop App) on my MATLAB app. This app calls a .m file which is using the rtwbuild command to deploy a Simulink model to an arduino. The app works well when run in MATLAB, however after compilation I receive an error with rtwbuild:
Error using rtwbuild
The Matlab Path must have these directories for Simulink to function:
toolbox/simulink/blocks, toolbox/simulink/simulink
Matlab cannot continue. Please restore the path and restart Matlab
The documentation says, that no Simulink functions are supported for the MATLAB Compiler (see here) and the rtwbuild function seems to be a Simulink function, since it is in the documentation in the category "Simulink Coder" (see here). However, I do not have the Simulink Coder Toolbox and the app was running in MATLAB anyway, so I am not sure if rtwbuild is really a Simulink function.
To keep it short, my question is the following:
"Is it possible to use the Application Compiler on .m scripts including the rtwbuild command?"
Thank you for your help!
rtwbuild is without a doubt a Simulink Function, which means the MATLAB-Coder can not generate code. More generally speaking, you can not deploy the code generator. Generating code from M or Simulink requires a full MATLAB (Simulink) to be running. It would be foolish to let you use such a key feature without a MATLAB (Simulink) license (personal opinion).
About your confusion about rtwbild being part of the Simulink Coder. The Support Package for Arduino Hardware allows you to use certain deployment features. You can for example get binaries, you can not access the C code without having a Coder License. For details refer to "Additional Capabilities with Simulink Coder and Embedded Coder" in the documentation.
The documentation does not reflect these special cases, but obviously TMW did not re-invent the wheel when providing the Support-Packages for Arduino. Instead some "Simulink Coder" functions do not require a Simulink Coder License when used with the code generation Target Arduino. Same is true for the Raspberry and to a limited extend for the (rapid) accelerator mode.
I am using MATLAB 2015a but my code needs to be compatible with 2014a version. Therefore I am looking for a solution, if there is any, to export 'fitcecoc' function with all its dependencies, which have been added in MATLAB 2014b.
In addition I have to tell that I do not have access to modify files inside 2014a, so all those functions which I would like to export needs to work straight from my workspace.
I'm trying to use a gui time-frequency toolbox in Matlab, but i can't find the proper function for one specific option and everytime I have to run it manually (using the gui form for calling the option)
The toolbox name is TFSA 6.3 from:
http://time-frequency.net/tf/index.php?option=com_content&view=category&layout=blog&id=38&Itemid=48
I am trying to use the LS polynomial coefficients algorithm in IF estimation tool. I know you may say that I need to read the user manual and find the right function in order to call it in the middle of program. trust me, I did it and there was nothing about this particular option.
I need to know if there is a way for using this gui toolbox without using the graphical interface, for example saving the history of my clicks...
One more thing! All the toolbox files are protected and I can't open them.
What is the simplest way to compile m-file without installed matlab?
And can someone say when will users get possibility for compiling programs with training networks (not only using training networks in compiling)?
MATLAB is not a compiled language, it is interpreted at runtime, so you need to have MATLAB installed to run a m-File (script). You can use the MATLAB compiler software to create a standalone application from an m-File or a function.
To run an m-file without having MATLAB, you can use GNU Octave. Octave is an open-source software which has almost the same syntax and functionality as MATLAB. They are not 100% identical though, so you will have to migrate your script. As mentioned in this question, code which runs in MATLAB will almost always run in Octave too, so it should work quite well.
for very basic scripting you can use this online octave(/matlab) compiler I found http://www.tutorialspoint.com/matlab/try_matlab.php There are some limitations of course, but for basic scripts it works well
I have written a set of Matlab functions and I want to distribute it to few people for testing. But I do not want to reveal the source to them. All these people have matalb installed on their systems. So I don't want to make standalone executable from my functions. Ideally I want something like complied library files which the users can put in the matlab path & call the functions from their matlab prompt / matlab functions. Is it even possible ?
Edit: I have matlab compiler toolbox. But the users won't be having access to matlab compiler toolbox on their matlab.
The standard way is using pcode. Look in the docs and remember to keep a copy of the source code elsewhere!