How to combine two data file in one file?
7 views (last 30 days)
Show older comments
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 Comments
Jonas
on 2 Apr 2024
most often you can combine it. how exactl depends on the data files. please provide two exemplary data files
Accepted Answer
Mathieu NOE
on 2 Apr 2024
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
More Answers (0)
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!