Question regarding Simulink - how to collect samples of a discrete signal on some interval
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am generating a discrete sine wave with many samples (let say 1000 or 10000 per period). Now I would like to collect only 100 of them for further processing. But those points should be collected on exact same time interval. Then I would process them as if they are stored in an array. Is this even possible?
Thank you in advance.
0 comentarios
Respuestas (1)
Sebastian Castro
el 31 de Ag. de 2015
You can set the option to "Produce specified output only" and enter the output times as something like tStart:dt:tEnd. For example 10:0.001:100 will collect data between 10 and 100 seconds of simulation at an interval of 1 ms.
- Sebastian
Ver también
Categorías
Más información sobre Sources 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!