MATLAB Answers

I am running for loop for 10 times, each time I am getting op as a matrix of size 1*4. I want to store each op so that i will get 10 * 4 matrix?

조회 수: 1(최근 30일)
Sachin Patil
Sachin Patil 3 Oct 2016
답변: Marco Wassmer 3 Oct 2016
I am doing in simulink. my for loop output is S function output. how to do that? please help?

  댓글 수: 0

로그인 to comment.

답변(1개)

Marco Wassmer
Marco Wassmer 3 Oct 2016
You could do it like this:
S=[];
dummy=1:1:4;
for n=1:1:10
S(n,:)=dummy;
end
Where dummy is your data and S your result

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by