Matlab Publish feature error

4 vues (au cours des 30 derniers jours)
Steven
Steven le 16 Août 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')

Réponses (1)

per isakson
per isakson le 21 Août 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 commentaire
Steven
Steven le 23 Août 2012
Thank you for checking this out. I'm still stumped on this. . .

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by