フィルターのクリア

Plot multiple normal distributions

3 ビュー (過去 30 日間)
James
James 2015 年 6 月 9 日
回答済み: Nitanshu 2022 年 6 月 14 日
I want to plot multiple normal distributions overlaying each other of dataset containing coordinates at along x and y direction?.. How do i do that?...
I want it such that i don't have a separate table for distribution x coordinates and one for y coordinates.

回答 (1 件)

Nitanshu
Nitanshu 2022 年 6 月 14 日
Hi James,
For plotting multiple normal distributions overlaying each other probably you can use the hold on keyword present in MATLAB.
you can use it as.
x1 = [1 2 3 4 5];
y1 = [2 4 6 7 10];
x2 = [5 4 3 2 1];
y2 = [2 3 5 8 10];
plot(x1, y1);
hold on
plot(x2, y2);
For more information you can refer this documentation on hold on.

カテゴリ

Help Center および File ExchangeDescriptive Statistics and Visualization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by