Replacing zeros with other values
53 ビュー (過去 30 日間)
古いコメントを表示
A=[1 2 3 4;
4 5 0 0;
1 0 0 1;
0 1 1 1]
I want to replace zeros in the third column with last known values. The result should be
A=[1 2 3 4;
4 5 3 0;
1 0 3 1;
0 1 1 1]
What should be the code.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!