Scan a row and replace any values equal to zero

1 回表示 (過去 30 日間)
Robert Demyanovich
Robert Demyanovich 2021 年 10 月 5 日
回答済み: Voss 2021 年 10 月 5 日
I need to replace any zero values in the columns of a specific row, i +1, of a matrix, cA, with a specific value, say 1E-07. How would I do that?

採用された回答

Voss
Voss 2021 年 10 月 5 日
cA(i+1,cA(i+1,:) == 0) = 1E-07;

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by