필터 지우기
필터 지우기

how can i store matrix inside simulation to get bigger matrix ?

조회 수: 1 (최근 30일)
arkedia
arkedia 2013년 2월 14일
i'm creating a simulation and first step result is matrix for example matrix of order (100 row and 4 columnes) the simulation next step must be in same orde , i want to make a storage to save the matrix of order (200 rows and 4 columnes) and so on i used the following code z(i,:)=horzcat(samples) note samples is the matrix that has resulted in the first step the code i used didn't work what can i do?
  댓글 수: 1
Jan
Jan 2013년 2월 14일
Please post the relevant part of the code. It is impossible to guess, what your "i", "z" and "samples" exactly are. In addition "didn't work" does not allow to suggest an improvement. Better post the error message or explain the different between the results and your expectations, respectively.

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

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 14일
편집: Azzi Abdelmalek 2013년 2월 14일
z=[];
%first result
A=rand(5,4);
z=[z;A];
%second result
A=rand(5,4);
z=[z;A]
% and so on

카테고리

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