How to write an output text file in a tabular form in matlab??
조회 수: 4 (최근 30일)
이전 댓글 표시
X=0.22, 0.3456,0.5567 Y=0.1123,1.9823,1.2345 Z=0.34,0.332,0.897
댓글 수: 0
답변 (2개)
ANKUR KUMAR
2018년 10월 1일
X= [0.22, 0.3456,0.5567]' ;
Y= [0.1123,1.9823,1.2345]' ;
Z= [0.34,0.332,0.897]' ;
AA=[X Y Z]
B=arrayfun(@(x) num2str(x) , AA,'uni',0)
BB=[{'array1','array2','array3'};B]
dlmcell('test.txt',BB)
댓글 수: 0
KSSV
2018년 10월 1일
X= [0.22, 0.3456,0.5567]' ; Y= [0.1123,1.9823,1.2345]' ; Z= [0.34,0.332,0.897]' ;
T = table(X,Y,Z)
참고 항목
카테고리
Help Center 및 File Exchange에서 Software Development Tools에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!