Community Profile

photo

Florian


Last seen: 2 days ago Active since 2023

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
Extract only diagonal elements from matrix
For a one line solution you can use linear indices via sub2ind: v = mat(sub2ind(size(mat), 1:length(mat), 1:length(mat)); Howe...

6 months ago | 0