Replacing 0 with 8 in Identity Matrix

1 回表示 (過去 30 日間)
May Myat Noe Tun
May Myat Noe Tun 2019 年 10 月 17 日
回答済み: Walter Roberson 2019 年 10 月 17 日
So I have a 2 by 2 matrix after running the following command.
x=eye(2);
How do I replace the 0s with 8s by using arithmetic function?

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 10 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by