SWITCH expression must be a scalar or string constant.

I have tried to install Math Convnet toolbox. I am follwing the instructions in http://www.vlfeat.org/matconvnet/quick/. when i use the comment " run matlab/vl_compilenn", (third comment) i am getting the following error.
SWITCH expression must be a scalar or string constant.
Error in vl_compilenn (line 181) switch opts.imageLibrary
Error in run (line 64) evalin('caller', [script ';']);
Kindly help me. Thanks in advance.

6 comentarios

Tyler Clark
Tyler Clark el 14 de Sept. de 2016
I am having the exact same problem...
Are you trying to run the code in 32 bit MATLAB or 64 bit? It is only designed for 32 bit MATLAB
Tyler Clark
Tyler Clark el 15 de Sept. de 2016
I am running it on 32 bit MATLAB
What does this show:
whos opts.imageLibrary
does it show a single element, a scalar? Like a number or character and not an array? It can't be an array.
Tyler Clark
Tyler Clark el 16 de Sept. de 2016
Editada: Tyler Clark el 16 de Sept. de 2016
nothing comes up. Im using MATLAB 2013a could that make a difference?
I don't know. Your best approach is to contact the author of that toolbox.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 2 de Jul. de 2016
That code is only for 64 bit architectures; I suspect you are trying to run it with 32 bit MATLAB.

2 comentarios

Mona
Mona el 2 de Jul. de 2017
so how to run that on 32-bit ?
You would need R2015b or earlier to run the 32 bit version.
However, it appear to me that the current versions of matconvnet should be suitable for 64 bit versions.

Iniciar sesión para comentar.

Categorías

Preguntada:

el 2 de Jul. de 2016

Comentada:

el 3 de Jul. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by