필터 지우기
필터 지우기

print matrix in txt file row by row

조회 수: 4 (최근 30일)
Mahmoud Hassan
Mahmoud Hassan 2019년 3월 2일
답변: madhan ravi 2019년 3월 2일
i want to print matrix of numbers in a txt file row by row .... which means each line is a row
i am using this code to write the matrix with name LTerm in a txt file
FileName=sprintf('%d.txt',503);
file=fopen(FileName,'wt');
fprintf(file,'%6.2f, \n',LTerm);
fclose(file);
i want to print each row in a separate line

답변 (1개)

madhan ravi
madhan ravi 2019년 3월 2일
doc dlmwrite % see precision option

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by