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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Classical Control Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by