matlab compiler r2011a problem with both edit and figure/plot
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (2개)
Walter Roberson
2011년 7월 30일
You cannot compile calls to "edit". figure() and plot() should be okay though.
댓글 수: 0
A Huang
2011년 7월 30일
댓글 수: 3
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Language Support에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!