How to save the value in matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Offroad Jeep
am 21 Nov. 2015
Beantwortet: Andrei Bobrov
am 21 Nov. 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
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 21 Nov. 2015
aa = abs(a);
me = aa - dx;
t = me < 0;
mat_ele = sign(a).*me;
mat_ele(t) = a(t);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!