Community Profile

photo

Aaron Rietman


Last seen: 4 years ago Active since 2019

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


Replace row of matrix with vector by logical indexing
I can do: a = 101:120; b = zeros(20,1); b(a>112) = 55; and it will give me b as a 1D vector with 55 in the places that a > 1...

4 years ago | 2 answers | 0

2

answers