行列の各要素の処理について
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Aと言うm×n行列がある時に、A行列の各要素で負の値になる所を0の値に変えたいです。
なんとなく、if文で出来るかと思ったので以下のようにやってみたところ
if A<0
A=0
end
このようにやってみても、各要素で見れず出来ませんでした。
行列の各要素でこのような処理が出来る方法をご教授お願いいたします、
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!