Thanks for answering my question. I finally figured out, it is the 'decimation' parameter. It was set to 5. when i changed to 1, everything make sense now.
'to workspace' data length question
    6 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Shengnan Li
 am 17 Jun. 2016
  
    
    
    
    
    Beantwortet: Shengnan Li
 am 24 Jun. 2016
            I specified the sample time for 'to workspace' block to be 10^(-5), but it saved only 20k data points, while it should be 100k data points, if it is sampling every 10^(-5)sec.why? Thanks.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
  Nihar Deodhar
      
 am 23 Jun. 2016
        The sample time does not dictate how many data points will be saved to work space (its better to keep it -1 so that the sample time of model is used). In order to limit/remove limit on the number of points you could tweak the model configuration parameters in simulations tab of the menu bar. A snapshot is attached for more details. Either uncheck or manually enter the number of points you wish to log.

0 Kommentare
Siehe auch
Kategorien
				Mehr zu Sources finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!