Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Writing data from Julia to an Excel Spreadsheet

$
0
0

Hi, I am having some issues with exporting data to excel, using the XLSX package. In my Julia script I have a loop (I = 9000) whereby at each step (value oof i) I need to write out a vector y (130 elements) and several other variables, say a,b,c….n I want the vector and each of the variables, for each I, to be written into a row (not a column).The program structure I am guessing would look something like:

For i in 1:9000
	I want to write the following to a file:
 i, y,a,b, c,..n
End 

My question is what is the Julia syntax to do this? I have familiarized my self with the basic commands surrounding the use of XLSX but none seem very relevant to the problem I am have. I am also open to using the CSV package, if this is considered better suited. I have managed to write what I want to a *.dat file (comma separated) but this is a little cumbersome as I then need to read this file into a spreadsheet.

5 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles