In simulink ,a feedback system, how may I use different row in a matrix input every single time?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
Fangjun Jiang
am 14 Nov. 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]
0 Kommentare
Siehe auch
Kategorien
Mehr zu Classical Control Design finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!