creating an empty column vector

7 Ansichten (letzte 30 Tage)
antonet
antonet am 24 Mai 2012
Hi all,
I would like to create an empty column vector so as when I extract this vector to excel to see empty cells.

Akzeptierte Antwort

Oleg Komarov
Oleg Komarov am 24 Mai 2012
cell(10,1)
Note that you can write to excel into a specific range, i.e. you don't need to add empty cell arrays to skip columns/rows.
  4 Kommentare
antonet
antonet am 24 Mai 2012
cell is 144 by 1 adn data1 is 144 by 309. for example
data1=0.0019 0.0022 0.0017 0.0016 0.0014 0.0022 0.0120
0.0020 0.0018 0.0020 0.0018 0.0023 0.0017 0.0120
0.0005 0.0005 0.0005 0.0004 0.0003 0.0003 NaN
0.0005 0.0005 0.0005 0.0004 0.0003 0.0003 0.0500
0.0000 NaN NaN NaN NaN NaN 0.0820
NaN NaN
Oleg Komarov
Oleg Komarov am 25 Mai 2012
[cell() num2cell(data1)]

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Numeric Types finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by