How to save the value in matrix

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by