Easier way to remove a response from a response plot (bodeplot, stepplot, etc.)?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Zachary
el 28 de Jul. de 2020
Comentada: Zachary
el 3 de Ag. de 2020
Is there a more convenient way to remove a response from a response plot generated using Control System Toolbox functions? I'm working with Bode diagrams, but this could apply to any response plot. After some digging, the only way I found was to a method in the resppack.bodeplot class called, rmresponse. From trial-and-error, I stumbled on a syntax...
%% Generate a Bode diagram with 2 responses
h = bodeplot(rss(1));
hold on
bodeplot(rss(1));
%% Remove the 1st response
idx = 1; %index of response to delete in the order stored in h.Responses
wave2rm = h.Responses(idx); %handle to response (waveform object)
h.rmresponse(wave2rm)
Even manually selecting the line group and pressing delete does nothing. I can hide the response using the context menu, but I'd rather remove it entirely. I'm always reluctant to rely on undocumented MATLAB features because another user will not be able to search for help. However, in this case, there just isn't much documentation on manipulating graphics produced by the Control System Toolbox.
So I was wondering if I'm missing something? Or if documentation does exist somewhere out there on these Control System Toolbox classes (i.e. resppack, wavepack, etc.)?
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Plot Customization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!