필터 지우기
필터 지우기

converting a vector input to scalar

조회 수: 6 (최근 30일)
uzmeed
uzmeed 2019년 12월 4일
답변: Bharath Venkataraman 2020년 1월 6일
Hi
I have a 3x3 matrix input.
I assign it to some variables to make 7x1 variable (appending zeros)
I need to use it in simulink
Now from each column when i read data through workspaceI get only last value at the result but not the rest first 2
My code is as under
Test_data=[dummy_left(x,:);dummy_data(x,:);dummy_right(x,:)]
A_I=[0;Test_data(:,1);0;0;0]
B_I=[0;Test_data(:,2);0;0;0];
C_I=[0;Test_data(:,3);0;0;0];
for i=1:4
A=A_I(i,:);
B=B_I(i,:);
C=C_I(i,:);
end

답변 (1개)

Bharath Venkataraman
Bharath Venkataraman 2020년 1월 6일
The Signal From Workspace block should help you get your data into Simulink.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by