Info

This question is closed. Reopen it to edit or answer.

Question with iteration data and writing them

1 view (last 30 days)
Ayesha Qubaisi
Ayesha Qubaisi on 25 Apr 2015
Closed: MATLAB Answer Bot on 20 Aug 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 Comments
Stephen23
Stephen23 on 25 Apr 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 on 27 Apr 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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!