matlab compiler r2011a problem with both edit and figure/plot
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I use "mcc -m test.m" for the following to build a standalone executable, but it ran into Java error during execution.
function []=test() edit(); figure(1); plot([1 2 3],[4 5 6]);
Any idea to make both edit and figure/plot work after compilation? I am using R2011a.
0 comentarios
Respuestas (2)
Walter Roberson
el 30 de Jul. de 2011
You cannot compile calls to "edit". figure() and plot() should be okay though.
0 comentarios
A Huang
el 30 de Jul. de 2011
3 comentarios
Walter Roberson
el 31 de Jul. de 2011
You can use a uicontrol of style edit, with 'enable' set to 'disable'. That will give you a text region with a vertical scroll bar but no edit facility.
If you need horizontal scrolling as well, there are MATLAB File Exchange contributions that provide horizontal and vertical scrolling for text.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!