統計
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
回答解決済み
Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...
12年以上 前
回答済み
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
解決済み
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
12年以上 前
解決済み
Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1
12年以上 前
質問
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
| 採用済み
解決済み
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
12年以上 前
回答済み
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
解決済み
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
12年以上 前
解決済み
Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...
12年以上 前
回答済み
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
解決済み
Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...
12年以上 前
解決済み
Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...
12年以上 前
解決済み
Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...
12年以上 前
解決済み
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
12年以上 前
解決済み
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
12年以上 前
送信済み
Customized K-Means
Customized K-means where you can choose different initial cluster centroid.
12年以上 前 | ダウンロード 1 件 |
解決済み
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
12年以上 前
解決済み
Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...
12年以上 前
解決済み
Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...
12年以上 前