How can I 'csvwrite' to one more matrices??

조회 수: 3 (최근 30일)
Coeing
Coeing 2015년 11월 17일
댓글: Coeing 2015년 11월 18일
Hello:)
I want to use 'csvwrite' function to 3 matrices.
3 matrices each have 15x9 size.
How can I make a csvfile like below one??
first 15x9 matrix..
second 15x9 matrix..
third 15x9 matrix..
total 15x27 matrix in csv
please help me!!:)

답변 (1개)

Walter Roberson
Walter Roberson 2015년 11월 18일
Create a new matrix which is [firstmatrix; secondmatrix; thirdmatrix] and csvwrite the result.
If you cannot do that for some reason then use optional r and c parameters to write the matrices at further and further locations into the file.
Or better yet, use fopen(), fprintf() and fclose() to write the values yourself without using csvwrite()
  댓글 수: 1
Coeing
Coeing 2015년 11월 18일
Ah..
It's easy way:) Thanak you

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by