Hello Vincent,
I understand that you want to analyze your experimental data with the aim to compare probabilities across three settings under different conditions.
The two-way ANOVA is a suitable choice as it will help us investigate the effects of two factors on the measured probabilities, and whether there's an interaction between these factors. For the "anova2" function, the data should be organized in a matrix where rows represent levels of one factor and columns represent levels of another. We need to stack the probability vectors for one factor vertically to form this matrix, ensuring each column corresponds to the same condition across all values of that chosen factor.
Please refer to the below code snippet that demonstrates how the data can be organized:
dataMatrix = [prob355; prob532; prob1064]';
numConditions = 4; % Number of conditions
[p, tbl, stats] = anova2(dataMatrix, numConditions); % Perform Two-Way ANOVA
Please refer to the below documentation to learn more about the "anova2" function: https://www.mathworks.com/help/stats/anova2.html
Hope it helps!