how to multiply a number in even rows of matrix?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
leeee
le 21 Oct 2019
Réponse apportée : Akira Agata
le 21 Oct 2019
I have: output2=-1*ones(input1,input4), how do i make all the even columns be 2? Thanks
Task: output2 is an (input1) × input4 matrix where the entries of all the odd columns are all -1 and the entries of all the even columns are all 2’s.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!