![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/6315042_1603475244960_DEF.jpg)
danielle sisserman
Followers: 0 Following: 0
Feeds
質問
call function for each combination of rows in A and columns in B
Xtrain = [1 2; 3 4; 5 6]; Xtest = [7 8 ; 9 10]; kernel = @(x1,x2) norm(x1 - x2); m = size(Xtrain, 1); n = size(Xte...
3年以上 前 | 2 件の回答 | 0
2
回答回答済み
function call returns "index (1.2): subscripts must be either integers 1 to (2^63)-1"
changed 2(1+y)/(4 + (1+y)^2); to 2*(1+y)/(4 + (1+y)^2); and it works.
function call returns "index (1.2): subscripts must be either integers 1 to (2^63)-1"
changed 2(1+y)/(4 + (1+y)^2); to 2*(1+y)/(4 + (1+y)^2); and it works.
3年以上 前 | 0
| 採用済み
質問
function call returns "index (1.2): subscripts must be either integers 1 to (2^63)-1"
I have the following function: u_1 = @(y) 2(1+y)/(4 + (1+y)^2); I call it: u_1(0.2) I get the following error: inde...
3年以上 前 | 2 件の回答 | 0
2
回答質問
Creating vector and matrix from vector
function w = svm(Xtrain, Ytrain) first, I want to create the following vector: data = [Xtrain(1)*Ytrain(1) Xtrain(2)*Yt...
3年以上 前 | 1 件の回答 | 0
1
回答質問
two functions with descriptions in one graph
for this code: % approximating f plot(X_in.', U.'); xlabel('x'); ylabel('approximate f(x)'); legend_strs = compose('App...
3年以上 前 | 1 件の回答 | 0
1
回答質問
construction of diagonal matrix of functions
I have three functions: f_1, f_2, and f_3. I want to construct the matrix A for the following linear system: so the fi...
3年以上 前 | 2 件の回答 | 0
2
回答質問
ploting a 2D graph with multiple lines
Hi, I'm a bigginer and what I need is too specific. I need to plot a graph that looks exaclty like this: I have a h vector...
4年弱 前 | 1 件の回答 | 0
1
回答質問
optimize my matrix function
this is my code: t=1; for j=k_indices knn_labels(t,1) = classifier.Ytrain(j,1); t ...
4年弱 前 | 1 件の回答 | 0
1
回答質問
size() function returns wrong size
i have the following line of code: s = size(k_distances) k_distances is a 1x1 matrix: but the size function returns a s...
4年弱 前 | 1 件の回答 | 0
1
回答質問
Undefined function or variable
I am getting the following error: this is the function call: k_distances,k_indices = findKNN(classifier,Xtest(i:1,:...
4年弱 前 | 1 件の回答 | 0
1
回答質問
Not enough input arguments.
I am trying to create a mX1 matrix that is initialized with zeros. this is what I'm doing: predictions = zeros((size(Xtest,1...
4年弱 前 | 1 件の回答 | 0
1
回答質問
Not enough input arguments.
Hi, I am very new to matlab and need some basic help. function classifier = learnknn(k, d, m, Xtrain, Ytrain) classifier ...
4年弱 前 | 0 件の回答 | 0