Inserting data into matrix of zeros from another matrix
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a matrix [signal] of 315954x64 of signal data. In another matrix [state.Flashing] (315954x1) there is logical 1 or 0 depending on an activation
I have categorized the signal matrix to obtain a matrix [FFsignal] (155520x64) of data when there is an activation:
for i = 1:length(signal)
FFlash = find (state.Flashing(1:i,1)==1);
end
FFsignal= signal(FFlash);
I want to graph these activations(64 diff channels) with the x axis the scale of the signal(315954) so I need matrices of similar dimensions so I wanted to insert the categorized data into a matrix of zeros of size (315954x64)
For example the first group of activation is in rows 631-654 and when categorized I have data for those time points. I want to add this data to a matrix of zeros in the same time points if possible. Therego, zeros until 631-654 and so on through the 315954 rows. Please help and of course thanks in advance!!
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!