How do I convert a numerical array to a char array?

10 vues (au cours des 30 derniers jours)
Kaitlyn Morgan
Kaitlyn Morgan le 16 Juin 2018
Say I have a matrix
A = [ 0 0 0 0 0 0 0 1 ;
0 0 0 0 0 0 1 0 ]
How would I convert this to a character array such as
B = ['00000001';
'00000010]
I am looking for something that does the opposite of
A = B - '0';

Réponses (1)

Walter Roberson
Walter Roberson le 16 Juin 2018

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by