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!