photo

Bruno Baptista


2016 年からアクティブ

Followers: 0   Following: 0

統計

Feeds

表示方法

回答済み
How can i put all zeros in the end of the rows in a matrix?
A = [matriz]; At = A'; N = length(A); B = zeros(size(At)); idx = At == 0; B(~sort(idx)) = At(~idx); B=B'

7年以上 前 | 0

| 採用済み

質問


How can i put all zeros in the end of the rows in a matrix?
i wanto to put all the zero elemets of a matrix to the end of the rows. For example if i have A=[1 0 2 3 0;1 3 0 2 5;0 2 4 0 1] ...

7年以上 前 | 2 件の回答 | 0

2

回答