필터 지우기
필터 지우기

Compiled GUI Executable working except for printing of plot. Plot printing routine works when run in MATLAB.

조회 수: 1 (최근 30일)
I am using MATLAB 2012a to run a filter plotting routine. The specifics of the routine are company-confidential and ITAR-restricted. However, I can say that the program does work when compiled except for the "Print Plot" and "Print Window" menu commands.
When I run the plotting routine within MATLAB, I am able to print the plot by itself (Print Plot) and the entire GUI window (Print Window). When I compiled the program, all commands and plotting routines work exactly the same as MATLAB except for these printing commands. The key provisions within the program are shown:
function mnuPrint_Callback(hObject,eventdata,handles)
%
%
% Proprietary Code
%
%
set(gcf,'PaperPositionMode','manual');
print -v -noui;
%
% Proprietary Code
%
I added the manual PaperPositionMode per some postings I saw previous to this.
I would like to know if there is something incompatible with the print command when compiling MATLAB Code.
Thanks

채택된 답변

Sandeep Math
Sandeep Math 2014년 3월 24일
Please try 'deployprint' instead of 'print' command and see if this fixes your problem.
  댓글 수: 1
Kevin Gaukel
Kevin Gaukel 2014년 3월 24일
Thank you. I figured it out right after I posted this. Have some issues about cropping, but that is something I can figure out.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by