trimming numbers
이전 댓글 표시
how can I trim numbers in matlab (similar to the left and right functions in excel). For example, if: A=[3829 3620 3714] and i want to get the first two digits: to get B=[38 36 37], how can i do so?
채택된 답변
추가 답변 (1개)
Rick Rosson
2011년 7월 2일
Please try the following:
B = floor(A/100);
HTH.
카테고리
도움말 센터 및 File Exchange에서 Direction of Arrival Estimation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!