Deleting Spaces in an Hex Array

1 次查看(过去 30 天)
tinkyminky93
tinkyminky93 2022-6-2
评论: Jan 2022-6-2
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 个评论
Walter Roberson
Walter Roberson 2022-6-2
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 2022-6-2
"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 ~= ' ')

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Numeric Types 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by