Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

how do i get the cell matrix to be double ?

3 visualizzazioni (ultimi 30 giorni)
Derick Wong
Derick Wong il 5 Gen 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Hi all,
I have output a dict into a .txt file, and dict is in double format. Now I need to recapture back the data output from dict at .txt and to be name as Decompdict, however what I got is not in double format when I recaptured from .txt. May I ask how do I get a double format for my Decompdict? What I manage to get now is shown as below.
dict =
[-47] [1x10 double]
[-17] [1x10 double]
[ -7] [1x9 double]
[ -3] [1x7 double]
[ -2] [1x4 double]
[ -1] [1x2 double]
[ 0] [ 1]
[ 1] [1x3 double]
[ 2] [1x5 double]
[ 3] [1x6 double]
[ 7] [1x9 double]
[ 17] [1x10 double]
[ 30] [1x10 double]
DecompDict =
'-47' '[0,0,1,0,1,0,1,0,0,1]'
'-17' '[0,0,1,0,1,0,1,0,0,0]'
'-7' '[0,0,1,0,1,0,1,1,1]'
'-3' '[0,0,1,0,1,0,0]'
'-2' '[0,0,1,1]'
'-1' '[0,1]'
'0' '1'
'1' '[0,0,0]'
'2' '[0,0,1,0,0]'
'3' '[0,0,1,0,1,1]'
'7' '[0,0,1,0,1,0,1,1,0]'
'17' '[0,0,1,0,1,0,1,0,1,1]'
'30' '[0,0,1,0,1,0,1,0,1,0]'

Risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by