How to embed a spectrum analyzer into the GUI created by App Designer
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Geunbae Kim
el 28 de Ag. de 2023
Comentada: Abderrahim. B
el 25 de Sept. de 2023
Hello
I'd like to use spectrum anaylzer on my application created using App Designer.
But it is not embedded on my application window.
My codes are as follows :
-----------------------------------------------
function ButtonPushed(app, event)
..........
% % Spectrum Analyzer
spectrum = spectrumAnalyzer('SampleRate', Fs);
spectrum(waveform);
release(spectrum);
----------------------------------------------
Please let me know how to do it.
Thank you.
GB Kim
0 comentarios
Respuesta aceptada
Abderrahim. B
el 28 de Ag. de 2023
Hi!
I don't think there is a way to embed spectrum analyzer directly into your app, however there are multiple workarounds, one of them is to calculate power specta using pspectrum function and then use semilogy to plot against frequency.
Let me know if this helps.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer 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!