Matlab Publish feature error
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
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
Voir également
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!