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!