Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
plotting array more than one time
조회 수: 1 (최근 30일)
이전 댓글 표시
I need a help in plotting this array [0 1 0 0 1 1 1 0 1 0] 50 times in the same figure so that the starting point of a time is the end point of the previous one (plus one), so if the previous one ends at 9 the new one starts at 10. but without using (repmat) I need that each time is a separate array.
1st time of the array [0 1 0 0 1 1 1 0 1 0] is from (0-9)
2nd time of the array is from (10-19)
3rd time of the array is from (20-29), and so on
but each time is a separate array dont want to combine them all on one array like function "repmat"
댓글 수: 0
답변 (1개)
KSSV
2019년 12월 17일
a = [0 1 0 0 1 1 1 0 1 0] ;
t = 0:1:59 ;
t = reshape(t,10,[])' ;
a = repmat(a,size(t,1),1) ;
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!