How to scatter plot when the values are i.e 1,1 and 1,10 grid

1 ビュー (過去 30 日間)
Ihaveaquest
Ihaveaquest 2022 年 8 月 22 日
コメント済み: Ihaveaquest 2022 年 8 月 22 日
trying to avoid repeating code
plot(sparams.frequency_GHz(1),delta(:,1))
plot(sparams.frequency_GHz(41),delta(:,1))
and for this when i try doing the same it does not work , possible to combine ??
plot(sparams.frequency_GHz(:,1),delta(:,2:end), plot_color,'HandleVisibility','off')
  2 件のコメント
Ihaveaquest
Ihaveaquest 2022 年 8 月 22 日
struct array
both
Freq 41X16
delta 41x16

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

採用された回答

Kevin Holly
Kevin Holly 2022 年 8 月 22 日
編集済み: Kevin Holly 2022 年 8 月 22 日
What do you want on your y and x axes?
sparams.frequency_GHz = 10*rand(41,16);
delta = rand(41,16);
This one separates the data based on the columns (16 groups)
scatter(sparams.frequency_GHz,delta,'filled')
xlabel('Frequency (GHz')
ylabel('Delta')
This one separates the data based on the rows (41 groups)
scatter(sparams.frequency_GHz',delta','filled')
xlabel('Frequency (GHz')
ylabel('Delta')
  3 件のコメント
Ihaveaquest
Ihaveaquest 2022 年 8 月 22 日
yes thatst the plot i need - Thank you

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by