matlab compiler r2011a problem with both edit and figure/plot
显示 更早的评论
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.
回答(2 个)
Walter Roberson
2011-7-30
0 个投票
You cannot compile calls to "edit". figure() and plot() should be okay though.
A Huang
2011-7-30
0 个投票
3 个评论
Walter Roberson
2011-7-31
It seems likely to me that compiling in edit() would be a violation of the license terms, so this is not something that I can be be of assistance with.
A Huang
2011-7-31
Walter Roberson
2011-7-31
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Language Support 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!