In simulink ,a feedback system, how may I use different row in a matrix input every single time?

1 回表示 (過去 30 日間)
Xiaxin
Xiaxin 2022 年 11 月 13 日
回答済み: Fangjun Jiang 2022 年 11 月 14 日
I have a matrix A in base workspace, size as (4001,3) and I set it as input in the feedback system. In the feedback system, it will generate a unique matrix B size as(1,3) each time it runs. I want make sure that at the first time, B substract from the first row of A, at the second time, B substract from the second row of A. How may I do that,? thanks a lot.

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2022 年 11 月 14 日
Use the "From Workspace" block to import A. Read the Help document of the block to understand the needed format.
Basically, you will need to create the time step vector, for example
t=[0:0.1:400]', then your specify the data for the "From Workspace" block as [t, A]

カテゴリ

Help Center および File ExchangeClassical Control Design についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by