Buildind special vector? V(3)=V(6)=V(9)...=0
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 6 Mär. 2013
Bearbeitet: Azzi Abdelmalek
am 6 Mär. 2013
V=[1 1 0 1 1 0 1 1 0 1 1 0]
N=3
V(N:N:end)=0
0 Kommentare
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!