Develop a signal from a MATLAB block with a different sample rate
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Marzieh Karami
 el 31 de Jul. de 2019
  
    
    
    
    
    Respondida: Siriniharika Katukam
    
 el 9 de Ag. de 2019
            I have a MATLAB function block with the sample time of 0.2 ms. In each 0.2 ms I want to build a 200*1 matrix in output that in steps of 1 us one of the matrix elemens are read and given to another block. How can I make such a signal?
0 comentarios
Respuesta aceptada
  Siriniharika Katukam
    
 el 9 de Ag. de 2019
        You can run the MATLAB function block at a sample time of 0.2ms by setting the solver step size to 0.0002 seconds (create 200 x 1 matrix). For other tasks to run at 1us sample time, you can add a model referenced block, and set its sample time to 0.000001 seconds (read elements and pass on). This way you can have blocks running at two different sample times.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Schedule Model Components 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!