Deleting Spaces in an Hex Array

1 view (last 30 days)
tinkyminky93
tinkyminky93 on 2 Jun 2022
Commented: Jan on 2 Jun 2022
Hello,
I have an array like
[AA BB CC DD EE] and i want to see it like [AABBCCDDEE]. how can i do it? Thank you
  2 Comments
Walter Roberson
Walter Roberson on 2 Jun 2022
Is it a string() array? A cell array of character vectors? A categorical array? Or is it currently coded in terms of 0xAA in the input?
Jan
Jan on 2 Jun 2022
"Hex Array" is not existing class of Matlab. Is this a CHAR vector or String?
Then deleting spaces is easy:
A = 'AA BB CC DD EE'
B = A(~isapce(A))
% Or
B = A(A ~= ' ')

Sign in to comment.

Answers (0)

Categories

Find more on Numeric Types in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!