Buildind special vector? V(3)=V(6)=V(9)...=0
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Risposta accettata
Più risposte (1)
Azzi Abdelmalek
il 6 Mar 2013
Modificato: Azzi Abdelmalek
il 6 Mar 2013
V=[1 1 0 1 1 0 1 1 0 1 1 0]
N=3
V(N:N:end)=0
0 Commenti
Vedere anche
Categorie
Scopri di più su Linear Algebra in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!