Setting all the entry in multiple columns to zero

4 Ansichten (letzte 30 Tage)
alpedhuez
alpedhuez am 25 Mär. 2018
Beantwortet: David Fletcher am 25 Mär. 2018
Suppose I have a matrix A that is 1000*5. Suppose I want to set all the elements in the third, fourth, and fifth columns to be zero. Is there any compact way to write this?

Akzeptierte Antwort

David Fletcher
David Fletcher am 25 Mär. 2018

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by