In simulink ,a feedback system, how may I use different row in a matrix input every single time?
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Fangjun Jiang
on 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 Comments
See Also
Categories
Find more on Classical Control Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!