Buildind special vector? V(3)=V(6)=V(9)...=0
조회 수: 1 (최근 30일)
이전 댓글 표시
How can I build
V=[1 1 0 1 1 0 1 1 0 1 1 0....]vector.I want to put N value and it will reply me V vector..
Elements fo V will be V(3)=V(6)=V(9)...=0
댓글 수: 1
추가 답변 (1개)
Azzi Abdelmalek
2013년 3월 6일
편집: Azzi Abdelmalek
2013년 3월 6일
V=[1 1 0 1 1 0 1 1 0 1 1 0]
N=3
V(N:N:end)=0
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!