How to save the value in matrix

조회 수: 1 (최근 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 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