Matlab Publish feature error
2 次查看(过去 30 天)
显示 更早的评论
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')
0 个评论
回答(1 个)
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!