How to combine two data file in one file?
조회 수: 7 (최근 30일)
이전 댓글 표시
I am trying to combine two data file. For example I have I data 2345 in one file and Q data -234 in second file and want to put together in one file in format 2345, -234
댓글 수: 2
Jonas
2024년 4월 2일
most often you can combine it. how exactl depends on the data files. please provide two exemplary data files
채택된 답변
Mathieu NOE
2024년 4월 2일
hello
try this :
IQ_data = [2756.00000000000 - 1252.00000000000i
2681.00000000000 - 992.000000000000i
2540.00000000000 - 679.000000000000i
2346.00000000000 - 330.000000000000i
2113.00000000000 + 37.0000000000000i];
I_data = real(IQ_data);
Q_data = imag(IQ_data);
writematrix([I_data Q_data], 'IQ_data.txt')
% plot data stored in file IQ_data.txt
type IQ_data.txt
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!