simulink

3 ビュー (過去 30 日間)
AYAH
AYAH 2012 年 2 月 9 日
Hello every body, How can I get the time for the maximum value for signal of 2D ,one is the amplitude and the other is the time in simulink

採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 2 月 9 日
The MinMax Running Resettable block outputs the minimum/maximum of a signal over time - you can use the Demux block to split your signal and provide only the amplitude as the input to the MinMax block. However, since you need to get the time corresponding to that maximum, I would recommend using the time part of your signal as input to a Triggered Subsystem - the subsystem will simply connect the output to the input (this is the default content of the block when you drag it in from the library). Setup the Trigger type to "both" (rising and falling), and use the output of the MinMax Running block as input to the trigger port. This will ensure that the output of the Triggered Subsystem will be updated only when the output of the MinMax block changes.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by