Simulink 3D Matrix Multiply

조회 수: 2 (최근 30일)
Taylor
Taylor 2015년 2월 21일
Hi, I have a set of state-space equations that I'm trying to simultaneously propagate. The A matrix will be an nxnxm matrix and the state matrix will be a nxm matrix.
In Matlab code, this function would look like:
for(i = 1:m)
Uprime(:,i) = A(:,:,i)*U(:,i) + b;
end
What is the best way to implement this in Simulink? I was thinking of writing an s-function, to loop through the third dimension, but I was hoping there was a built in Simulink function that could do this instead?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by