I am using traci4matlab, and I am running "traci_test2.m" but this error occured - matlab

Dot indexing is not supported for variables of this type.
Error in traci.sendExact (line 19)
activeConnection.dos.writeInt(len);
Error in traci.getVersion (line 23)
result = traci.sendExact();
Error in traci.start (line 65)
[traciVersion,sumoVersion] = traci.getVersion();
Error in traci_test2 (line 57)
traci.start(['sumo-gui -c ' '"' scenarioPath '"' ' --start']);
19
activeConnection.dos.writeInt(len);

Related

I'm trying to train the code of Target-Aware Deep Tracking in matlab

I'm for now compiling in CPU version.I am working on matlab 2020a.I've tried to remove the vl_nnconv.m from matconvnet but i still get the following error.
Also the matconvnet i'm using is version matconvnet-1.0-beta25 I'm stuck here since 2 days ,could somebody lease help me out with this issue?
https://github.com/XinLi-zn/TADT
The above is the github code i'm trying to work on.
Foloowing are the errors i'm getting:
Error using vl_nnconv
The option name is not a string (argument number 5)
Error in dagnn.Conv/forward (line 11)
outputs{1} = vl_nnconv(...
Error in dagnn.Layer/forwardAdvanced (line 85)
outputs = obj.forward(inputs, {net.params(par).value}) ;
Error in dagnn.DagNN/eval (line 91)
obj.layers(l).block.forwardAdvanced(obj.layers(l)) ;
Error in get_subwindow_feature (line 37)
net_feat.eval({'input',gpuArray(patch_sw)});
Error in tadt_tracking (line 63)
feat_groups = get_subwindow_feature(net_feat, img, sw_location, input_sz, feat_layer);
Error in Demo_TADT (line 23)
[result, fps]=tadt_tracking(seq_info.img_list, seq_info.gt(1,:), vgg16_model_path, display);
the following are the functions that is causing the error and the argument is obj.pad
function outputs = forward(obj, inputs, params)
if ~obj.hasBias, params{2} = [] ; end
outputs{1} = vl_nnconv(...
inputs{1}, params{1}, params{2}, ...
'pad', obj.pad, ...
'stride', obj.stride, ...
obj.opts{:}) ;
end

How do I use PRtools' forward feature selection in MatLab?

I am trying to apply a forward feature selection on a PRdataset. Following the syntax presented online though produces a bunch of errors that I don't quite understand and haven't been able to solve. Any ideas on what is causing them or how to fix?
Code used and resulting errors shown below:
A=prdataset(data,classes);
[w,r]=featself(A,'NN');
Error using indnn (line 50)
Trainset and testset should by identical for LOO processing
Error in fnnc (line 33)
L = indnn(a,trainset,loo);
Error in prmap (line 231)
[d,varargout{:}] = feval(mapp,a,b);
Error in * (line 14)
d = prmap(a,b);
Error in testk (line 55)
d = a*w;
Error in feateval (line 128)
J = 1 - testk(a,1);
Error in featsellr>plusl (line 182)
critval = feateval(a(:,[state.I Jsub]),crit);
Error in featsellr (line 127)
state = plusl(a,crit,t,state,fid);
Error in featself (line 56)
[w,r] = featsellr(a,crit,ksel,1,0,t);

Mirtoolbox miraudio function issue

How do I solve this error?
a = miraudio('tea')
Here are the error message returned by each reader:
Error using wavread (line 7)
WAVREAD will be removed in a future release. Use AUDIOREAD instead.
Error using auread (line 8)
AUREAD will be removed in a future release. Use AUDIOREAD instead.
Error using mp3read>mysystem (line 306)
unable to execute "C:\Program Files\MATLAB\R2015b\toolbox\mirtoolbox1.3.3\mirtoolbox\mp3info.exe" -r m -p "%Q %u %b %r %v * %C %e %E %L %O %o %p" "tea.mp3" (Error opening MP3: tea.mp3: No such file or directory
)
Error using aiffread (line 159)
Could not open file 'tea.aif'.
Error using mirerror (line 4)
ERROR using MIRREAD: Cannot open file tea
Error in mirread>misread (line 142)
mirerror('MIRREAD',['Cannot open file ',file]);
Error in mirread (line 57)
misread(orig, err);
Error in mireval (line 68)
[d1,tp1,fp1,f1,lg,b,n,ch] = mirread([],file,0,0,0);
Error in mirfunction (line 69)
o = mireval(o,filename,nout);
Error in miraudio (line 170)
varargout = mirfunction(#miraudio,orig,varargin,nargout,specif,#init,#main);

matlab's out of memory error

I try to run the following code on matlab:
syms a c mu epsi real
epsi=10
eq_1=(0.5*pi^2-mu+2*epsi)*a+2*epsi*c-0.25*(3*a^3+3*a^2*c+6*a*c^2);
eq_2=(4.5*pi^2-mu+2*epsi)*c+2*epsi*a-0.25*(a^3+6*a^2*c+3*c^3);
[a_mu c_mu ]=solve(eq_1,eq_2,a,c)
N_prime=diff(0.5*(a_mu.^2+c_mu.^2),mu)
and I get the following error:
??? Error using ==> eq
Out of memory. Type HELP MEMORY for your options.
Error in ==> sym.sym>char2sym at 377
if isempty(x) || all(x == ' ') || strcmp(x,'{}')
Error in ==> sym.sym at 95
S = char2sym(x);
Error in ==> sym.maple at 92
result = sym(result,'keepijalias');
Error in ==> sym.diff at 50
R = reshape(maple('map','diff',S(:),x),size(S));
Error in ==> Untitled4 at 10
N_prime=diff(0.5*(a_mu.^2+c_mu.^2),mu)
how can I solve it?

Error using getImageFromFile (line 11)

My code execute correctly for the digits but it given some errors to the characters. the image presented in that location but it shows image not found like..
Error using getImageFromFile (line 11)
Cannot find the specified file: "C:\Program Files\MATLAB\R2014a\toolbox\vision\visiondemos\characters\handwritten\B\img012-00012".
Error in imageDisplayParseInputs (line 73)
[common_args.CData,common_args.Map] = ...
Error in imshow (line 219)
[common_args,specific_args] = ...
Error in charmodified (line 22)
subplot(2,3,4); imshow(testChar{1,2});