Effacer les filtres
Effacer les filtres

How to convert character matrix into numeric matrix ? Can you share code for that?

2 vues (au cours des 30 derniers jours)
bavani marimuthu
bavani marimuthu le 27 Nov 2017
Commenté : Stephen23 le 28 Nov 2017
I have created a matrix that accepts the text file called pub.txt and content in that file is Hello word alone..and displayed it .
str=fileread('pub.txt')
str =
Hello Bava
Hi Hi
Hi Hi
Now, I want to convert this character matrix into numeric matrix ? Plz help
  14 commentaires
bavani marimuthu
bavani marimuthu le 28 Nov 2017
If my .txt file contains the character called 'Hello' .. Then Whether is there any possibilities to convert it into numeric matrix from character matrix which contains the character in it..
Stephen23
Stephen23 le 28 Nov 2017
double('Hello')
will convert the char matrix into a numeric matrix.

Connectez-vous pour commenter.

Réponses (0)

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