How to indicate p < 0.05 interval in a line graph?

조회 수: 4 (최근 30일)
James Chen
James Chen 2022년 5월 27일
편집: Nihal Reddy 2023년 2월 15일
Hi, I am new to MATLAB, I wonder how can we use MATLAB to plot graphs like this one:
where the small orange rectangles inside the plotting area indicate p < 0.05; line width reflects ± SEM.

채택된 답변

Nihal Reddy
Nihal Reddy 2022년 6월 1일
편집: Nihal Reddy 2023년 2월 15일
From my understanding you want to plot a graph like the one in the image shared. For plotting graphs which fill the areas between the curves you can use “area” function.
You can refer to the following sample example-
x = [0.25 0.5 0.75 1];
Y = [0.4 0.2; 0.5 0.7; 0.1 0.9; 0.4 0.3];
area(x,Y)
xlabel('Time(s)')
ylabel('Representation Similarity')
For more information related to the “area” function you can use the following MATLAB documentation link-

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by