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

3 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 14 de Nov. de 2022
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]

Community Treasure Hunt

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

Start Hunting!

Translated by