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일

0 개 추천

csvwrite()

댓글 수: 3

mohammed hussein
mohammed hussein 2018년 1월 22일
thank you very much for your answer . i want the data be saved in .text form with comma . this command just put the comma between the numbers
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개)

카테고리

도움말 센터File Exchange에서 Data Import and Export에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by