필터 지우기
필터 지우기

How to write Output text file in Tabular format in matlab??

조회 수: 1 (최근 30일)
Virajan Verma
Virajan Verma 2018년 10월 1일
댓글: ANKUR KUMAR 2018년 10월 2일
X contains 61 decimal integers like 0.0123 0.9876 and so on. Y contains 61 decimal integers like 0.0123 0.9876 and so on. Z contains 61 decimal integers like 0.0123 0.9876 and so on. I want an output text file containing 3 columns-X,Y and Z. Please help.

답변 (1개)

ANKUR KUMAR
ANKUR KUMAR 2018년 10월 1일
I am taking a random data to give you an example.
A=rand(1,61);
B=rand(1,61);
C=rand(1,61);
AA=[A' B' C']
dlmwrite('test.txt',AA)
  댓글 수: 8
ANKUR KUMAR
ANKUR KUMAR 2018년 10월 1일
Get dlmcell function from here
ANKUR KUMAR
ANKUR KUMAR 2018년 10월 2일
Accept the answer if it helps you.

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

카테고리

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