How to make this type of variation plot in MATLAB

4 ビュー (過去 30 日間)
Doyinsola
Doyinsola 2024 年 3 月 26 日
移動済み: Dyuman Joshi 2024 年 3 月 26 日
Hi,
I want to recreate a plot that look like this in MATLAB. I can see it is a boxplot but the boxplot function I found in MATLAB is not generating exactly as in picture.
I have attached my dataset I want to plot. A matrix (Intensity for 6 different energy levels emitted at five selected wavelength), 7 by 5 matrix. The first row is the wavelength while 2:end row is the intensities at each energy level. I have also attached a column vector that represent the energy levels. Can anyone help me with the script to plot exactly like this plot? Thank you as I await your help.
  1 件のコメント
Aquatris
Aquatris 2024 年 3 月 26 日
Here is all the different types of plots offered in matlab.

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

採用された回答

Dyuman Joshi
Dyuman Joshi 2024 年 3 月 26 日
移動済み: Dyuman Joshi 2024 年 3 月 26 日
You are looking for errorbar.
  1 件のコメント
Doyinsola
Doyinsola 2024 年 3 月 26 日
移動済み: Dyuman Joshi 2024 年 3 月 26 日
Thank you very much Dyuman. This comment solved my problem. Now, I have what I want with the errorbar function.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by