Borrar filtros
Borrar filtros

How to create a 2D waterfall plot?

13 visualizaciones (últimos 30 días)
Veronica yep
Veronica yep el 27 de Jun. de 2017
Comentada: Veronica yep el 27 de Jun. de 2017
I would like to create a 2D spectral density waterfall plot. I imagine it would be easier to use the waterfall function somehow or even to create my own code for it by somehow using the waterfall function to create an array which displays horizontally along the y-axis, and then either shifting that row down or just plotting the new row under it. Is there a way to save the waterfall data into an array? Or a way to plot the new waterfall data with an offset on the y-axis?
the waterfall data is an array called 'sweepData' which is updated in a loop which I would like to be appended to the waterfall graph in each loop
Attached is a picture with 1 plot of the waterfall data, I just need to keep plotting the new data under it
Code:
subplot(3,1,3)
spec_dens = waterfall(sweepData);
xlabel('Frequency (MHz)')
ylabel('Sample Number')
title('Waterfall (Spectral Density Graph)')
view(0,90)
xlim([0 numSamples])
ylim([0 numCapture])
set(gca,'Ydir','reverse')
  1 comentario
Veronica yep
Veronica yep el 27 de Jun. de 2017
sorry i should say, the data, 'sweepData' which is used in the waterfall function is just an array of power values of corresponding frequencies

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by