From within a Java program, how do I make a MATLAB call (via a function built with Compiler SDK) that is headless, so that an invisible figure can be saved as a jpg without MATLAB crashing?
Ältere Kommentare anzeigen
My main program is Java and this makes calls to MATLAB via the Compiler SDK. This mechanism works fine. One particular MATLAB function creates an invisible plot and saves a jpg using saveas - I create the new plot with figure('visible', 'off'). When I run in my development environment, this works very well. However, when I deploy to a field processor running Ubuntu server and MATLAB MCR R2015A, MATLAB crashes with a segmentation violation (which appears to be graphics related).
I know MATLAB can be called with command line arguments to make it headless. How can this be done when function calls to MATLAB are made from within Java?
1 Kommentar
Peter
am 21 Sep. 2015
Antworten (0)
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!