- https://www.mathworks.com/help/matlab/import_export/ways-to-import-text-files.html#:~:text=its%20user%20interface.-,Import%20Data%20as%20Tables,-If%20your%20text
- https://www.mathworks.com/help/matlab/ref/readmatrix.html#d126e1410276:~:text=example-,A%20%3D%20readmatrix(filename),-creates%20an%20array
How to plot constellation diagram for 8 - PSK modulation ?
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I wants to plot the constellation diagram for 8 - PSK modulation. The modulation is at the baseband data. I have three signals for the same which modulated the input data stream into 8 - PSK modulation. These are I, Q & Signal waveforms. I have captured these data on Oscilloscope. But not sure how will I use these captured data to plot the constellation diagram. In oscilloscopes, there is XY mode but will be only useful to plot QPSK modulation constellation.
Can anyone help on how I can use these captured ".csv" data further in MATLAB to plot the Constellation Diagram ?
My license number is : 416213.
Regards,
Nikhil Mitaliya
0 Kommentare
Antworten (1)
Yukthi S
am 4 Sep. 2024
As per my understanding, you want to load the I, Q sample data captured in .CSV files into MATLAB and use it to plot a constellation diagram.
1. Text files such as .CSV files can be imported into MATLAB using readtable if you want to bring in the data as a table, or readmatrix if you prefer to import it as a matrix.
You can refer to the following MathWorks documentation links to know more about readtable and readmatrix:
2. To plot constellation diagram in MATLAB, scatterplot function can be used. Before using scatterplot function, make sure “Communication Toolbox” is installed in MATLAB.
More information about scatterplot is given in this MathWorks documentation:
The code given below gives a basic idea of how it can be done:
I_data = readmatrix('I_data.csv'); % Replace with actual file name
Q_data = readmatrix('Q_data.csv');
% Combine the I and Q data into a complex signal
complex_signal = I_data + 1j * Q_data;
figure;
scatterplot(complex_signal);
Hope this will help you to get started!
0 Kommentare
Siehe auch
Kategorien
Mehr zu PSK finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!