Azzera filtri
Azzera filtri

Deleting Spaces in an Hex Array

2 visualizzazioni (ultimi 30 giorni)
tinkyminky93
tinkyminky93 il 2 Giu 2022
Commentato: Jan il 2 Giu 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 Commenti
Walter Roberson
Walter Roberson il 2 Giu 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 il 2 Giu 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 ~= ' ')

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Numeric Types in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by