I tryed the runtests function example at http://de.mathworks.com/help/matlab/ref/runtests.html
and in matlab 2015b everthing works perfectly. But in matlab 2013b I get the following error
>> runtests
Error using runtests (line 41)
Not enough input arguments.
And if I explizietly one of the m-files
>> runtests('typeTest.m')
I get
Error using matlab.unittest.TestSuite.fromFile (line 94)
"C:\Users\u16h62\Documents\MATLAB\Example\typeTest.m" is not a valid test file.
Error in runtests>createSuite (line 60)
suite = TestSuite.fromFile(file);
Error in runtests>#(test)createSuite(test,parser.Results.Recursively) (line 41)
suites = cellfun(#(test)createSuite(test, parser.Results.Recursively), ...
Error in runtests (line 41)
suites = cellfun(#(test)createSuite(test, parser.Results.Recursively), ...
Can someone say me what I am doing wrong, please?
The runtests function changed between these releases. It looks like the 0-input syntax was first documented for this function in R2014b.
See the R2013b version of the runtests documentation to determine how the function works in that release:
http://www.mathworks.com/help/releases/R2013b/matlab/ref/runtests.html
Also, check the release notes to read about changes that were made to the function:
http://www.mathworks.com/help/matlab/release-notes.html
Related
I am attempting to run the mnist example in matconvnet using parapooling. I have allocated 2 gpus, but it shows this error while trying to run cnn_mnist_experiments:
Error using cnn_train>(spmd) (line 157)
Error detected on workers 1 2.
Error in cnn_train (line 157)
spmd
Error in cnn_mnist (line 55)
[net, info] = trainfn(net, imdb, getBatch(opts), ...
Error in cnn_mnist_experiments (line 3)
[net_bn, info_bn] = cnn_mnist(...
Caused by:
Error using ParameterServer/startWithMMap (line 170)
An UndefinedFunction error was thrown on the workers for 'vl_cudatool'. This may be because the
file containing 'vl_cudatool' is not accessible on the workers. Specify the required files for
this parallel pool using the command: addAttachedFiles(pool, ...). See the documentation for
parpool for more details.
Undefined function 'vl_cudatool' for input arguments of type 'single'.
Error using ParameterServer/startWithMMap (line 170)
An UndefinedFunction error was thrown on the workers for 'vl_cudatool'. This may be because the
file containing 'vl_cudatool' is not accessible on the workers. Specify the required files for
this parallel pool using the command: addAttachedFiles(pool, ...). See the documentation for
parpool for more details.
Undefined function 'vl_cudatool' for input arguments of type 'single'.
Apparently, the workers cannot get access to "vl_cudatool" file. What could be the issue here?
Undefined function 'vl_cudatool' for input arguments of type 'single'.
It means that your vl_cudatool function is not in your path
try
which vl_cudatool
I don't know what vl_cudatool is. Maybe you can try some earlier version of MatConvNet?
I run the demo code of RCNN with matcaffe, but I met an error which confused me for a while:
Error using caffe
Unknown command 'get_weights'
Error in rcnn_load_model (line 36)
rcnn_model.cnn.layers = caffe('get_weights');
Also, I check the directory of caffe matlab, there is not get_weights function. Do anyone know how to solve that? Thank you.
I converted matlab code to exe file with deploytool this cod use matlab neural network tool box , when I execute the code it returns the next error:
-- error.
Default value is not a member of type "nntype.training_fcn".
??? Error using ==> nnetParamInfo>nnetParamInfo.nnetParamInfo at 28
FCN is not the name of a function on the MATLAB path.
error using fitnet>get_info (line 88)
I am trying to use the normalized cuts package from [http://www.cis.upenn.edu/~jshi/software/Ncut_9.zip][1] (on Windows 7 - MATLAB R2010a 32 bits), but it's not working. I'm trying to run the demo called "Ncut Clustering demo" and I got the following error:
??? Undefined function or method 'sparsifyc' for input arguments of type 'double'.
Error in ==> ncut at 41
W = sparsifyc(W,dataNcut.valeurMin);
Error in ==> ncutW at 9
[NcutEigenvectors,NcutEigenvalues] = ncut(W,nbcluster);
Error in ==> demoNcutClustering at 27
[NcutDiscrete,NcutEigenvectors,NcutEigenvalues] = ncutW(W,nbCluster);
I already put the NCUT9 dir in the path so this is not the problem I guess, and I already compile the MEX files with the command: compileDir_simple(mydir).
When I tried to compile Vedaldi's SIFT algorithm in MATLAB, I got the following error while compiling:
sift_compile
D:\PROGRA~1\MATLAB\R2010A~1\BIN\MEX.PL: Error: 'imsmooth.c' not found.
??? Error using ==> mex at 222
Unable to complete successfully.
Error in ==> sift_compile at 33
mex('imsmooth.c',opts{:}) ;
I did got mex to run on other cases, the compiler I used is VS2008. And the path of the imsmooth.c and other source code is also included in the MATLAB path. Could someone give me some hints how should I get it work?
C:\Program Files\MATLAB\R2011a\sift\
add in the pathnames helps!