save data form matlab to .txt

조회 수: 2 (최근 30일)
mohammed hussein
mohammed hussein 2018년 1월 22일
댓글: mohammed hussein 2018년 1월 22일
Hi
can anyone help me to save the data from the matlab to .txt file with has comma after each number. for example
A=[1 2 3 4 5 6 7 8 9];
is there any way to have A in .text and be like 1,2,3,4,5,6,7,8,9
thank you very much for helping

채택된 답변

Fangjun Jiang
Fangjun Jiang 2018년 1월 22일
csvwrite()
  댓글 수: 3
Fangjun Jiang
Fangjun Jiang 2018년 1월 22일
try csvwrite('test.txt',[1 2 3 4 5 6 7 8 9]);
mohammed hussein
mohammed hussein 2018년 1월 22일
this is exactly what i want
thank You

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by