統計
All
Feeds
質問
Canonical Correlation Analysis - canoncorr function in matlab
I am just starting with CCA, I am trying to explore it using the matlab function, but I guess I am stuck understand the result I...
12年弱 前 | 1 件の回答 | 0
1
回答質問
Understanding output of perfcurve
[X,Y,T,AUC2,OPTROCPT] = perfcurve(classtest,classpredict,2); My classtest as well as classpredict are 460*1, but when i run ...
約12年 前 | 1 件の回答 | 0
1
回答質問
SVM Error - The first input should be a struct generated by SVMTRAIN
I am getting error using following code with SVM SVMStruct1 = svmtrain(data,class,'kernel_function','linear'); class12=...
約12年 前 | 0 件の回答 | 0
0
回答回答済み
What do all these errors mean and is there anything that I can do to prevent/fix this
http://www.mathworks.com/help/matlab/matlab_prog/resolving-out-of-memory-errors.html This might help!
What do all these errors mean and is there anything that I can do to prevent/fix this
http://www.mathworks.com/help/matlab/matlab_prog/resolving-out-of-memory-errors.html This might help!
12年以上 前 | 0
| 採用済み
回答済み
Error using ==> mtimes Inner matrix dimensions must agree.
pts3 = H*[pts1;ones(1,n)]; if you check the size of H and size of [pts1;ones(1,n)], the no. of columns of H and no. o...
Error using ==> mtimes Inner matrix dimensions must agree.
pts3 = H*[pts1;ones(1,n)]; if you check the size of H and size of [pts1;ones(1,n)], the no. of columns of H and no. o...
12年以上 前 | 0
質問
ROC curve for Decision Tree
I am getting ROC curve for decision tree but I am a bit taken away by the curve. Its similar to the curve, http://ard.bmj.com...
12年以上 前 | 2 件の回答 | 0
2
回答回答済み
Entering a formula by user
Have a look at eval: http://www.mathworks.com/help/techdoc/ref/eval.html aMatrix = magic(5); expression = input('Ent...
Entering a formula by user
Have a look at eval: http://www.mathworks.com/help/techdoc/ref/eval.html aMatrix = magic(5); expression = input('Ent...
12年以上 前 | 0
| 採用済み
回答済み
Subscript indices must either be real positive integers or logicals; Perimeter issue
plot(x,y((i-1)*5000:i*5000),'g') when i=1, you are indexing y from 0:5000, matlab doesnt have 0 index.
Subscript indices must either be real positive integers or logicals; Perimeter issue
plot(x,y((i-1)*5000:i*5000),'g') when i=1, you are indexing y from 0:5000, matlab doesnt have 0 index.
12年以上 前 | 1
| 採用済み
回答済み
Why do I get this response 'Operands to the || and && operators must be convertible to logical scalar values.'?
G=str2num(Grade); G will be a string so you need to convert that to a number using the str2num function. Its better to use...
Why do I get this response 'Operands to the || and && operators must be convertible to logical scalar values.'?
G=str2num(Grade); G will be a string so you need to convert that to a number using the str2num function. Its better to use...
12年以上 前 | 0
| 採用済み
回答済み
rows which do not contain zero
count=sum(sum(D==0,2)==0) count will be the number of rows which are not all zeros in matrix D.
rows which do not contain zero
count=sum(sum(D==0,2)==0) count will be the number of rows which are not all zeros in matrix D.
12年以上 前 | 0
回答済み
Initialization of array of structure
You shouldnt do LD=[], instead you should change the field of each of the structure in the array.
Initialization of array of structure
You shouldnt do LD=[], instead you should change the field of each of the structure in the array.
12年以上 前 | 0
回答済み
a simple question about for loop
First of all its loop not loob. I hope you meant range as a variable. the following code should work. for a = (1:10) ...
a simple question about for loop
First of all its loop not loob. I hope you meant range as a variable. the following code should work. for a = (1:10) ...
12年以上 前 | 0
回答済み
xlsread uses ''basic mode'' on windows with excel
I think it is because you used xlsx file if you use xls you should be fine.
xlsread uses ''basic mode'' on windows with excel
I think it is because you used xlsx file if you use xls you should be fine.
12年以上 前 | 0
回答済み
Converting Excel columns to a vector
hf=[]; for i = 1:3 % Loop over the files a = xlsread(dataFiles{i}); % Load the data ...
Converting Excel columns to a vector
hf=[]; for i = 1:3 % Loop over the files a = xlsread(dataFiles{i}); % Load the data ...
12年以上 前 | 0
| 採用済み
回答済み
creating a string variable to be used in xlswrite
product={'carrots' 'vegetables' 'tomatoes'}; country={'DE' 'FR' 'UK'}; Name={sprintf('Input_%s_%s.xls',count...
creating a string variable to be used in xlswrite
product={'carrots' 'vegetables' 'tomatoes'}; country={'DE' 'FR' 'UK'}; Name={sprintf('Input_%s_%s.xls',count...
12年以上 前 | 0
回答済み
Concatenate Cell Arrays (string and numeric)
a={'john','harry'}; b={'20','30'}; a=strcat(a,'(',b,'%)');
Concatenate Cell Arrays (string and numeric)
a={'john','harry'}; b={'20','30'}; a=strcat(a,'(',b,'%)');
12年以上 前 | 0
回答済み
Concatenate Cell Arrays (string and numeric)
a={'john','harry'}; b={'20','30'}; s='%' for i=1:2 bb=cell2mat(b(1,i)); str=sprintf('(%s%s)',bb,s); ...
Concatenate Cell Arrays (string and numeric)
a={'john','harry'}; b={'20','30'}; s='%' for i=1:2 bb=cell2mat(b(1,i)); str=sprintf('(%s%s)',bb,s); ...
12年以上 前 | 1
| 採用済み
質問
How to save the plot with two lines
x=rand(1,10); y=1:10; h=plot(x,y,'r',x,y,'g'); saveas(h, 'test','jpg'); I want to save the plot above but i get an...
12年以上 前 | 1 件の回答 | 0
1
回答回答済み
Read Data from .CSV File
fid = fopen(filename); M=textscan(fid,'%s','collectoutput',1,'headerlines',0); fclose(fid); X=M{1,1}; X wil...
Read Data from .CSV File
fid = fopen(filename); M=textscan(fid,'%s','collectoutput',1,'headerlines',0); fclose(fid); X=M{1,1}; X wil...
12年以上 前 | 0
回答済み
reading data from dataset.txt
fid = fopen('data.txt'); M=textscan(fid,'%s'); fclose(fid); X=M{1,1} X will have each element includin...
reading data from dataset.txt
fid = fopen('data.txt'); M=textscan(fid,'%s'); fclose(fid); X=M{1,1} X will have each element includin...
12年以上 前 | 0
回答済み
How to access the variable range for leaf node in decision tree
Had to do little bit of coding but got it anyway. :)
How to access the variable range for leaf node in decision tree
Had to do little bit of coding but got it anyway. :)
12年以上 前 | 0
| 採用済み
回答済み
Random numbergeneration with constraints
What happens if number of columns is something large may be 20? it would definitely cross your constraint of 60. if you plot the...
Random numbergeneration with constraints
What happens if number of columns is something large may be 20? it would definitely cross your constraint of 60. if you plot the...
12年以上 前 | 0
質問
How to access the variable range for leaf node in decision tree
I want to access the variable range for each of the leaf node for the decision tree that is created by using classregtree. I can...
12年以上 前 | 2 件の回答 | 0
2
回答回答済み
Warning on Calling fortran code in Matlab2011a
If I am not wrong, its just the warning. you might wanna try. warning off;
Warning on Calling fortran code in Matlab2011a
If I am not wrong, its just the warning. you might wanna try. warning off;
12年以上 前 | 0
回答済み
Multiple outputs from one function?
A simple example of it is: function [a,b]= myfunction(c,d) a=c*d; b=c+d; Function returns a,b.
Multiple outputs from one function?
A simple example of it is: function [a,b]= myfunction(c,d) a=c*d; b=c+d; Function returns a,b.
12年以上 前 | 1
| 採用済み
回答済み
matrix nan
a=[2 3 NaN 5 NaN NaN 9 3 2]; [m,n]=size(a); b=isnan(a); for j=1:n if b(j)==1 li=j-1; ...
matrix nan
a=[2 3 NaN 5 NaN NaN 9 3 2]; [m,n]=size(a); b=isnan(a); for j=1:n if b(j)==1 li=j-1; ...
12年以上 前 | 0
回答済み
Sorting Matricies
[b,c]=sort(a) b will have the sorted a, while c contains the index. Hope it helps.
Sorting Matricies
[b,c]=sort(a) b will have the sorted a, while c contains the index. Hope it helps.
12年以上 前 | 0
| 採用済み
回答済み
For an nx3 matrix, order the 3 entries in each row, then order rows from least to greatest, then check for repeated rows.
This should do the job for you. a=rand(5,3); [m,n]=size(a); a=sort(a,2); a=sortrows(a,3); temp=[]; f...
For an nx3 matrix, order the 3 entries in each row, then order rows from least to greatest, then check for repeated rows.
This should do the job for you. a=rand(5,3); [m,n]=size(a); a=sort(a,2); a=sortrows(a,3); temp=[]; f...
12年以上 前 | 0
回答済み
[Help]+Matrix Operation
b is being used as an index. t is an array with elements incrementing my 0.999, which means b is also an array. Now elements ...
[Help]+Matrix Operation
b is being used as an index. t is an array with elements incrementing my 0.999, which means b is also an array. Now elements ...
12年以上 前 | 0