Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Question with iteration data and writing them

1 vue (au cours des 30 derniers jours)
Ayesha Qubaisi
Ayesha Qubaisi le 25 Avr 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
Dear all
I have attached the data that i would like to process. As you can see, it has 105122 rows.
However, i want to print the data of the second column at each 13 timestep.
How can i do this and print the values to external text or excel file?
Your assistance is appreciated.
  2 commentaires
Stephen23
Stephen23 le 25 Avr 2015
Please edit your question and attach the data using the paperclip button: you will need to press both buttons: Choose file and Attach file.
Geoff Hayes
Geoff Hayes le 27 Avr 2015
@Ayesha - what is the format of your file? Consider using impordata (if applicable) to import your data which you can then iterate over and write the second column of every 13th row (is this correct) to a new file (or Excel spreadsheet). See fprintf and/or xlswrite for details.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by