sample a signal obtained from a simulation...(signal might not be sinusoidal)

1 回表示 (過去 30 日間)
Aditya
Aditya 2011 年 3 月 7 日
Can anybody tell me how to sample a continuous signal obtained from the simulink at a samling frequency of 1Khz...

採用された回答

Arnaud Miege
Arnaud Miege 2011 年 3 月 8 日
It depends what you want to do. If you want to convert your continuous signal into a discrete one, so that you can feed it to a (discrete) controller for example, then use a Rate Transition block. If you just want to log the signal to the workspace at a sampling frequency of 1 kHz, then simply use a To Workspace block with the relevant sample time.
More details on logging and other options are available in the Simulink documentation under Visualizing and Comparing Simulation Results and Importing and Exporting Data.
  1 件のコメント
Aditya
Aditya 2011 年 3 月 8 日
Thank u very much sir..it helped me a lot...

サインインしてコメントする。

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by