How to Turn off th yyaxis mode in app designer?
Mostrar comentarios más antiguos
in the code followed below, when I switch off, I expect the second y axis delete. But it remains.
cla(app.UIAxes,"reset") is useless because The lables will be cleared.
what is your suggestion?
methods (Access = private)
function [] = ploot(app)
a=[1,2,3,4];
b=2*a;
c=2*b;
plot(app.UIAxes,a,b);
yyaxis(app.UIAxes,'right');
plot(app.UIAxes,a,c);
end
end
% Callbacks that handle component events
methods (Access = private)
% Value changed function: Switch
function SwitchValueChanged(app, event)
value = app.Switch.Value;
switch value
case 'On'
ploot(app);
case 'Off'
cla(app.UIAxes);
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!