Damn, I've posted the solution in the comment of somebody else's answer. Then he deleted his answer, and my comment with. I cannot export the 1st and 3rd quartiles from the software that the values come from, only the std, as well as I cannot export the median, but only the average. So I am looking for replacing the 1st and 3rd quartiles by the average+/-std in the graph. After using the help of ChatGPT, I could have the following solution:
min_val = 1.5;
median_val = 2.2; %Here is the average from my external software
std_val=0.19; %Here is the std from my external software
q1_val = median_val-std_val;
q3_val = median_val+std_val;
max_val = 2.5;
figure
%There is twice the median value so the box will perfectly fit the quartile values
boxplot([min_val, q1_val, median_val, median_val, q3_val, max_val], 'Labels', {'Data'}, 'BoxStyle', 'outline', 'Whisker', 1.5, 'Positions', 1, 'Symbol', 'o', 'Colors', 'b', 'Widths', 0.5, 'Notch', 'off', 'MedianStyle', 'line');
ylim([1.4 2.9])
grid
This way, I have the following graph:

This is exactly what I was looking for. And this works with boxchart too.
Sorry @Voss that you waste time to investigate on my issue whereas I already found the solution. Anyway, thank you for your help !
