How to creat .csv file in matlab?

I have nine year wind speed data in excel. The format of this data is like Day,Hour,WindSpeed for nine year. For example: 1,1,5.1 1,2,5.1 . . 1,24,5.7 2,1,6.2 2,2,7.7 . . 2,24,6.7 . . . 3287,1,9.8 3287,2,11.3 . . 3287,24,4.6 Could anybody please suggest me help me for creat csv file in matlab for this type of data?

1 Comment

The meaning of the data does not matter. The data could be a random matrix also and the solution would be the same.

Sign in to comment.

 Accepted Answer

Jan
Jan on 15 Mar 2017
Edited: Jan on 15 Mar 2017
data = rand(100, 3); % Test data
csvwrite('File.csv', data);

More Answers (1)

read data from excel using xlsread and write using csvwrite.
doc xlsread
doc csvwrite

1 Comment

Thank you very much I have learnt much more think from your answer

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!