I am new for prtools, I am trying use prtools for regression analysis, but the codes shown as follow can not be run correctly, please tell me what is wrong, thanks!
a=dataset([2333411 4723.97 5105138 1978195 5366;…
2575911 4552.03 4953038 1823332 6192; ...
3718427 4436.03 7770971 1711326 6944; ...
4713368 4758.87 9118844 1548581 7582; ...
5102903 5197.33 5598079 1501252 8349; ...
5537553 5560.31 3637681 1462364 9133; ...
6310271 6611.78 2717925 1431940 10528; ...
7936776 6976.65 3907711 1396138 13373]);
a.targets=[35554725;40904753;46342420;58603258;68922066;84587418;106522163;125334211];
a.labtype=’targets’;
w2b = a*svmr([],0.01,’r’,2);
plotr(w2b,’r--’);
fprintf(’svm regression : %f\n’, b*w2b*testr);
while running the code, Matlab gives follow error information
Welcome to PRTools, version 4.1.5 (30-Jul-2009).
This version of PRTools is valid for non-commercial academic use only.
See http://prtools.org/ for more information.
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 1.067212e-017.
> In D:\software\svm\prtools_ac\prtools\linearr.m at line 45
In D:\software\svm\prtools_ac\prtools\map.m at line 199
In D:\software\svm\prtools_ac\prtools\@mapping\mtimes.p at line 15
In D:\ql\paper\matlab-program\mysvr.m at line 25
??? Error using ==> plot
Vectors must be the same lengths.
Error in ==> D:\software\svm\prtools_ac\prtools\scatterr.m
On line 27 ==> h = plot(+x(:,1),y,clrs);
Error in ==> D:\ql\paper\matlab-program\mysvr.m
On line 38 ==> scatterr(a);

