Hello Inseong,
제 모국어는 한국어가 아니라서, 이 질문에 영어로 답변하려고 합니다. 이해해주셔서 감사합니다.
As per my understanding, you would like to plot a box graph representing maximum, minimum, mean – std. deviation, mean values, mean + std. deviation values calculated from a dataset.
You can achieve this by calculating mean and standard deviation using “mean” and “std” functions.
Here is an example showing how you can do it:
% Step 1: Calculate mean and standard deviation
mean_val = mean(data);
std_val = std(data);
% Step 2: Create new dataset
new_data = [max(data), min(data), mean_val - std_val, mean_val, mean_val + std_val];
% Step 3: Plot the box graph
figure;
boxplot(new_data);
Please refer to the following documentation to know more about:
“mean" function:
“std” function:
“boxplot” function:
I hope this resolves the issue you were facing.