Labels in Stackedplot generated from Arrays
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Max Yaffe
el 28 de Abr. de 2023
Comentada: Max Yaffe
el 2 de Mayo de 2023
I'm using stackedplot to plot a complex transfer function with Phz & Mag on the Y axis and Freq on the X. Is there any way to relabel the axes when I plot directly from the Arrays: freq' [abs(H), angle(H)]', where H(freq) is complex?
2 comentarios
Walter Roberson
el 28 de Abr. de 2023
Maybe array2table() and set the table Properties.VariableNames and use the table version of stackedPlot() as it will use names taken from the table variable names?
Respuesta aceptada
dpb
el 29 de Abr. de 2023
You mean something like
hS=stackedplot([1:100]',randn(100,2));
hS.DisplayLabels={'Mag','Phase'};
hS.XLabel='Frequency';
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots 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!