Error using sortrows (line 63) COL must be a vector of column indices into X. Error in newton (line 77) vardmy=sortrows(var,-1);. what does mean by this error ? how to remove it?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
swati paliwal
am 26 Dez. 2017
Kommentiert: Walter Roberson
am 29 Jan. 2018
%........ fitness calculation..................
pufmx=vnucsh(n,1)*1.00; % varible constarints on puf
pufmn=vnucsh(n,1)*0.9;
nucsh=[vnucsh(n,1);vnucsh(n,2)];
fitness=fit_fun(nucsh);
if(fitness~=0)
var=[var;fitness;nucsh(1);nucsh(2)]; % calling fitness function
nro=nro+1;
end
end
vardmy=sortrows(var,-1);
vardmy1=vardmy(1,:); % one highest fitness variable
maxvarfit=vardmy1(1); % maximum fitness
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 26 Dez. 2017
In current versions of MATLAB, sortrows with a negative column number means to sort in descending order on that column..
You could do a sortrows(var,1) and then
vardmy1=vardmy(end,:);
4 Kommentare
Walter Roberson
am 27 Dez. 2017
Sorry, you have not posted enough of the code for me to speculate on the reason.
Weitere Antworten (1)
swati paliwal
am 28 Jan. 2018
Bearbeitet: Walter Roberson
am 28 Jan. 2018
7 Kommentare
Walter Roberson
am 29 Jan. 2018
Yes, it costs something; depending on who you hire, it could end up costing a lot. That is the price of privacy.
The volunteers here donate their time to benefit everyone, expecting that the questions and answers will be public so that everyone can learn from them and everyone can contribute. However, the volunteers often decline to answer private questions as private questions get into "work" and people expect to be paid for work.
I am not sure who is available as a consultant these days. Yair possibly -- but Yair is a professional and expects to be paid for private professional services. Some of the more active volunteers might agree to being hired, if the topic interests them and they do not have anything else to do. I am not accepting contracts these days.
Mathworks offers a consulting service; I do not know how much they charge.
You can probably find MATLAB consulting services online, possibly even close to you. I would suggest, though, that if you hire one of the "5 dollars for any program" services that you should not trust that your code will stay confidential.
Siehe auch
Kategorien
Mehr zu Third-Party Cluster Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!