필터 지우기
필터 지우기

Sampling values from step signal and concatenating them into a vector (Mx1 array into 1xM array)

조회 수: 1 (최근 30일)
I have a step signal coming from an ASCII decode block in Simulink. For example i have the values in a 7x1 array [1;2;3;4;5;6;7] and the sample period values
tout<7x1 double> = [0;0.0100;0.0200;0.0300;0.0400;0.0500;0.0600]
So when I connect it to a scope, it gives a series of steps.
How can I extract the values, one by one, and put them into a vector like this:
values=[1 2 3 4 5 6 7] {1x7},
so my values appear at the same time?

답변 (1개)

Thorsten
Thorsten 2013년 2월 1일
row = [1;2;3;4;5;6;7];
column = row';
  댓글 수: 2
Zoltan
Zoltan 2013년 2월 1일
Yes, this is working in MATLAB. I would like to accomplish the same thing in Simulink.
Zoltan
Zoltan 2013년 2월 1일
If i export my array from Simulink into the workspace, and make the conversion above, it doesn't work. The result is the same 7x1 array. Not 1x7

댓글을 달려면 로그인하십시오.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by