Hi Abdullah,
I understand that you are encountering an error while trying to create a boxplot for a matrix. The main reason for this error is the use of symbolic variable “x” without proper conversion.
The “boxplot” function does not support symbolic variables and requires a numeric matrix as input. To solve the issue, you can convert the symbolic matrix “x” to a numeric matrix using the “double” function.
x_numeric = double(x);
boxplot(x_numeric);
This would fix the issue and the plot would be generated.
For more information about the “boxplot” function and its input arguments, please refer the following documentation:
Thanks!
