I am using Windows 7 system.
And trying to use PuTTY to connect to a linux server and run Matlab Neural Network training function on it.
Before I asked question I have looked into some similar question here. But none of them solve my problem.
The command I use to open matlab is:
matlab -nodisplay -nodesktop
And in my code I also set:
net.trainParam.showWindow = false;
But I still got the error:
??? Error using ==> nntraintool at 28
NNTRAINTOOL requires Java which is not available
Error in ==> trainlm>train_network at 228
[userStop,userCancel] = nntraintool('check');
Error in ==> trainlm at 113
[net,tr] = train_network(net,tr,data,fcns,param);
Error in ==> network.train at 107
[net,tr] = feval(net.trainFcn,net,X,T,Xi,Ai,EW,net.trainParam);
Error in ==> generateNN at 49
[net tr] = train(net, features, targets);
Error in ==> sixOutputNN at 30
[ net tr ] = generateNN(features, targets, HIDDEN_LAYER, ...
Error in ==> findBestSixOutputNN at 10
[~, tr] = sixOutputNN(features, targets, configs(i).hidden_layers, ...
Could anyone help me with this. Thank you very much.
Sounds like you need to install a JVM on the host computer. See this web site for some help: http://www.mathworks.com/help/techdoc/matlab_external/f98533.html#f122001
Solution here:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/301204
I just converted the line 33 of nntraintool.m from:
error(message('nnet:Java:NotAvailable'));
to
warning(message('nnet:Java:NotAvailable'));
So that I still remember that there is something fishy going on there!
It works like a charm!
This problem was present even in Matlab 2012a...
Related
Whenever I try to run the lsim command in Octave, I get
error: invalid function handle, unable to find function for #is_real_matrix
Here's what I am trying to do:
>> n=3*[2 125];
>> d=[1 9 45 125];
>> t=0:0.01:5;
>> x=3*ones(size(t));
>> y=lsim(n, d, x, t);
error: invalid function handle, unable to find function for #is_real_matrix
error: called from
lsim at line 83 column 11
I've loaded in the control package and everything. Could someone tell me what's going on?
I am currently using Octave 6.4.0, and the version of control is 3.2.0.
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!
I type in Matlab command window rtwintgt -install and get the following error:
??? Undefined function or variable 'twintgt'. [sic]
» rtwintgt -install
You are going to install the Real-Time Windows Target kernel.
Do you want to proceed? [y] : y
??? Failed to copy the kernel to Windows system directory.
Access is denied.
Error in ==> C:\MATLABR11\toolbox\rtw\windows\private\rtwtinst.dll
Error in ==> C:\MATLABR11\toolbox\rtw\windows\rtwintgt.m (rtwt_setup)
On line 74 ==> reboot = rtwtinst('install', srcpath);
Error in ==> C:\MATLABR11\toolbox\rtw\windows\rtwintgt.m
On line 24 ==> rtwt_setup
What should I do? And is it important to install this file?
My problem is when I call a matlab function from a file in my code using (#myfunction),
I get error?
As suggested in the comments, check if you have admin rights on your machine as well as if your license includes the Real-Time Windows Target.
I am getting an error when try to test Bayes Net Toolbox for Matlab, I am doing the same as the installation shown here but get errors (I have Matlab R2010b):
>> cd 'C:\MATLAB\R2010b\FullBNT-1.0.4'
>> addpath(genpathKPM(pwd))
Warning: Function C:\MATLAB\R2010b\FullBNT-1.0.4\KPMtools\assert.m has
the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential
name conflict.
> In path at 110
In addpath at 87
Warning: Function C:\MATLAB\R2010b\FullBNT-1.0.4\KPMtools\isscalar.m has
the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential
name conflict.
> In path at 110
In addpath at 87
Warning: Function C:\MATLAB\R2010b\FullBNT-1.0.4\KPMtools\isvector.m has
the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential
name conflict.
> In path at 110
In addpath at 87
>> test_BNT
ll =
1.0e-010 *
-0.0670 0.1697
cycle 1 lik -51.5585
cycle 2 lik -45.0863
cycle 3 lik -42.9953
??? Undefined function or method 'finite' for input arguments of type 'double'.
Error in ==> ffa at 71
elseif ((lik-likbase)<(1+tol)*(oldlik-likbase)|~finite(lik))
Error in ==> fa1 at 27
[L1, Psi1, LL1] = ffa(X,k,max_iter);
Error in ==> test_BNT at 8
fa1
>>
As you said: Replace calls to the obsolete finite with isfinite
in
BNT/examples/static/Zoubin/ffa.m and BNT/examples/static/Zoubin/mfa.m
here is a reference
Using newer versions > 7.8
- Replace calls to the obsolete finite with isfinite
in
BNT/examples/static/Zoubin/ffa.m and BNT/examples/static/Zoubin/mfa.m
so test_BNT will now work.