Matlab Publish feature error

4 Ansichten (letzte 30 Tage)
Steven
Steven am 16 Aug. 2012
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')

Antworten (1)

per isakson
per isakson am 21 Aug. 2012
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 Kommentar
Steven
Steven am 23 Aug. 2012
Thank you for checking this out. I'm still stumped on this. . .

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by