How to save the value in matrix

3 ビュー (過去 30 日間)
Offroad Jeep
Offroad Jeep 2015 年 11 月 21 日
回答済み: Andrei Bobrov 2015 年 11 月 21 日
hi , how i can save the result in matrix form as of the same size of initial matrix, i mean it only give 1 value i want to save all the values of mat_ele in the matrix form......
regards

採用された回答

Andrei Bobrov
Andrei Bobrov 2015 年 11 月 21 日
aa = abs(a);
me = aa - dx;
t = me < 0;
mat_ele = sign(a).*me;
mat_ele(t) = a(t);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by