フィルターのクリア

stair generator matrix input?

2 ビュー (過去 30 日間)
Peter Balazovic
Peter Balazovic 2022 年 4 月 12 日
回答済み: Krishna 2023 年 12 月 28 日
is it posible to have matrix change on stair generator?
or otherway to do matrix change during simulation?
  3 件のコメント
Peter Balazovic
Peter Balazovic 2022 年 4 月 13 日
"During simulation" means to change parameters (time dependent), and as well interact with simulation (mouse click, switch etc...)
Peter Balazovic
Peter Balazovic 2022 年 4 月 13 日
I have RC network where I want to change R,C parametrs during runtime. I would prefer "Stair Generator" to enter parameters at once instead of having "Stair Generator" per each element .

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

回答 (1 件)

Krishna
Krishna 2023 年 12 月 28 日
Hi Peter,
Indeed, Simulink allows for the modification of parameters during a simulation, giving you the capability to interact with it in real-time.
For those working with an RC network in MATLAB and Simulink, adjusting parameters on-the-fly can be efficiently done by employing a "Stair Generator" block. This block is designed to output a series of step changes at specified times, which you can align with the desired adjustments in resistance (R) and capacitance (C) values throughout the simulation's duration.
When you need to alter multiple parameters simultaneously, you can format the Stair Generator's output as a matrix. Each column in this matrix can represent a separate parameter of your RC network. For example, you could have resistance values in the first column and capacitance values in the second. You would then route this matrix into your RC network model, utilizing multiplexer (mux) blocks to parse the matrix columns and link them to the corresponding elements of your circuit.
Please go through this documentation to learn more about how to do it,
Please go through this documentation to know more about stair generator,
Additionally, you can also use variant parameters (Simulink.VariantVariable) to vary the values of block parameters in a model conditionally during simulation and code generation.
Hope this helps.

カテゴリ

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

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by