hw = phased.FMCWWaveform('SweepBandwidth',1e5,... 'OutputFormat','Sweeps','NumSweeps',2); plot(hw);
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Seetha Rama Raju Sanapala
el 11 de Jun. de 2015
Respondida: Honglei Chen
el 15 de Jun. de 2015
hw = phased.FMCWWaveform('SweepBandwidth',1e5,... 'OutputFormat','Sweeps','NumSweeps',2); plot(hw);
Why does this code plot only one sweep?
Of course, I know how to extend the vector and draw plot of 2 sweeps. But my question is what the reason could be that it only gives one sweep data and plots only one sweep data. Even though NumSweeps is given as 2.
0 comentarios
Respuestas (1)
Honglei Chen
el 15 de Jun. de 2015
The 'NumSweep' property is used control the output of step() method, not for the ploting. If you want to see multiple sweeps, or want to see what the output signal looks like, you can do the following
wav = phased.FMCWWaveform('NumSweeps',2);
x = step(wav);
plot((0:numel(x)-1)/wav.SampleRate,real(x));
xlabel('Time (s)');
0 comentarios
Ver también
Categorías
Más información sobre Continuous Waveforms en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!