help with problem using xlswrite

Hi, I am trying to export an array in the format below to an excel document. The 4th to 7th columns are exported correctly but the 1st to 3rd produce blank columns. Can anyone help with this please?
Ta
'Turbidity' '2011-09-13 01:00:00' '2011-09-13 01:00:00' 'Event' 'Moderate' 'Spike Filtering' 'Perks'
'Turbidity' '2012-01-25 23:00:00' '2012-01-25 23:00:00' 'Event' 'Moderate' 'Spike Filtering' 'Perks'
'Turbidity' '2012-01-26 00:00:00' '2012-01-26 00:00:00' 'Event' 'Moderate' 'Spike Filtering' 'Perks'

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 23 Feb. 2013

0 Stimmen

Your data should be like
Ta={'Turbidity' '2011-09-13 01:00:00' '2011-09-13 01:00:00'
'Turbidity' '2012-01-25 23:00:00' '2012-01-25 23:00:00'
'Turbidity' '2012-01-26 00:00:00' '2012-01-26 00:00:00'}
xlswrite('filename.xls',Ta)

Diese Frage ist geschlossen.

Tags

Gefragt:

am 23 Feb. 2013

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by