trimming numbers
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (1)
Rick Rosson
am 2 Jul. 2011
Please try the following:
B = floor(A/100);
HTH.
Kategorien
Mehr zu Direction of Arrival Estimation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!