I have logged a signal from simulink to workspace in timeseries format and got 317 samples of that signal. Can i increase the number of samples i get or the sampling rate?

조회 수: 2 (최근 30일)
I tried changing start time and end time in this, so that i can get 317 samples in reduced interval thus accuracy of the logged signal can be increased.But, when i run the code again the applied changes were not taken.
Is it even possible to change sampling rate because,this approximated signal causing cumulative error in my code.
  댓글 수: 3
Paul
Paul 2024년 1월 13일
How exactly is the signal being logged? Using a To Workspace block?
How exactly do you get that "Define Uniform Time Vector" dialog box?
A Lumbini
A Lumbini 2024년 1월 14일
Yes i used To Workspace block
and by clicking on the logged signal the above shared screenshot appeared and there is a Uniform Time Vector box

댓글을 달려면 로그인하십시오.

답변 (1개)

Paul
Paul 2024년 1월 14일
More samples of the logged signal can be collected by settng the Sample Time of the To Workspsace block to whatever sample time is needed. The sample time will have to be consistent with the step size of the simulation solver. There will not be a problem if the solver is variable step.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by