Matlab Publish feature error

2 次查看(过去 30 天)
Steven
Steven 2012-8-16
I am receiving the following error when I use the publish feature within Matlab. The error does not appear in the Command Window, only in the report. The error is:
??? Error using ==> get
Invalid handle object.
Error in ==> plotyy>localUpdatePosition at 378
newDestPos = hgconvertunits(hFig,newPos,get(axSource,'Units'),get(axDest,'Units'),get(axSource,'Parent'));
Warning: Error occurred while evaluating listener callback.
Here is the code that is producing the error:
%%Temperature: Turbocharger
% Plot Setup
Y1 = [Exh0x2EAfterTurbo, Exh0x2EAfterTurbo1];
[ax, h1, h2] = plotyy(Time, Y1, Time, EngineSpeed);
%Plot labeling
set(h2,'color','red','linestyle','--')
set(ax,{'ycolor'},{'k';'k'})
set(get(ax(1),'Ylabel'),'String','Temp [deg F]')
set(get(ax(2),'Ylabel'),'String','Engine Speed [RPM]')
xlabel('Time')
title('Turbocharger')
legend('ExhaustAfterTurbo1','ExhaustAfterTurbo2','EngineSpeed','Location','SouthOutside')

回答(1 个)

per isakson
per isakson 2012-8-21
With R2012a, 64bit, Winows7, publish of this code produce the expected result. No error message.
% Plot Setup
Y1 = randn( 2, 24 );
EngineSpeed = randn( 1, 24 );
Time = transpose(1:24);
.... your code
  1 个评论
Steven
Steven 2012-8-23
Thank you for checking this out. I'm still stumped on this. . .

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by