Plot I vs Q using complex matrix dataset

4 ビュー (過去 30 日間)
sri ram
sri ram 2021 年 2 月 5 日
編集済み: Pratheek Punchathody 2021 年 4 月 5 日
I want to plot I (inphase) vs Q (quadrature) graph using 128*256 complex dataset. The dataset is attached(M2.mat). What is the shape of the graph? Please share the code.
  2 件のコメント
darova
darova 2021 年 2 月 5 日
What about surf?
Maximilian Schönau
Maximilian Schönau 2021 年 2 月 5 日
編集済み: Maximilian Schönau 2021 年 2 月 5 日
how do you want the komplex data be displayed? You need four dimensions to plot a 2d matrix of complex and therefor 2d numbers

サインインしてコメントする。

回答 (1 件)

Pratheek Punchathody
Pratheek Punchathody 2021 年 2 月 12 日
編集済み: Pratheek Punchathody 2021 年 4 月 5 日
As per my understanding you want to plot I and Q from the complex signal mentioned in M2.mat.
Following piece of code will help to achieve it.
load M2.mat; %load the M2 file to the workspace
I = real(M2);
Q = imag(M2);
figure; hAxes = gca;
plot( hAxes, I );
hold( hAxes, 'on' );
plot( hAxes, Q, '--' );
Hope this helps

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by