How to save the value in matrix

1 visualización (últimos 30 días)
Offroad Jeep
Offroad Jeep el 21 de Nov. de 2015
Respondida: Andrei Bobrov el 21 de Nov. de 2015
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

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 21 de Nov. de 2015
aa = abs(a);
me = aa - dx;
t = me < 0;
mat_ele = sign(a).*me;
mat_ele(t) = a(t);

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by