Please check the version of the Bio-Formats library being used by the following command:
If this results in the following isse,
Undefined variable "loci" or class "loci.formats.FormatTools.VERSION".
then the Bio-Formats JARs are not on the Java classpath. If you have downloaded the latest Bio-Formats MATLAB toolbox, you should be able to put these JARs on the classpath and return the version of the library via:
[status,version] = bfCheckJavaPath()
Having performed these operations, please try re-running the toolbox function:
data = bfopen('<filename>.scn');
If there is still an error, please consider renaming the '.scn' file to a string which does not contain any characters (.,/?<>:;'"*&^%$#@<space>) and try re-rerunning the command.
DISCLAIMER: These are my own views and in no way depict those of MathWorks.