質問


histc and bin-width determination
Hi Given I have the following data: A = [100 150 190 200 250 300 350 370 390 400 400] And I want 3 bins: From 100 to 2...

9年以上 前 | 2 件の回答 | 0

2

回答

質問


matrix with elements sum of elements of old matrix
Hi Given I have an array: [3,4,2,5] I want to construct out if it a new array where the two last elements are summed to one - ...

9年以上 前 | 1 件の回答 | 0

1

回答

質問


Histogram for bins with different numbers of elements..
Hi I have the following problem: I have data which I want to plot - but not every bin has the same number of datapoints. ...

9年以上 前 | 2 件の回答 | 0

2

回答

質問


Histogram with counting number of "1" per bin
Hi, I have the following data: The intensity of a stimulus can be varied on a certain range, subjects have to say then for ea...

9年以上 前 | 2 件の回答 | 0

2

回答

質問


vectorizing/simplifying randperm code
Hi The idea of my code is the following: If for instance I have the three "sequences": (1) 12345 (2) 56789 (3) 43789...

9年以上 前 | 0 件の回答 | 0

0

回答

質問


Nested While and If Loops
Hi The code I wrote is supposed to do the following for a given array containing numbers: - Prompt the user to enter a num...

9年以上 前 | 1 件の回答 | 0

1

回答

質問


randperm in while loop
Hi, I want to achieve the following with my code: For A(1) I can chose randomly from 1, 2 or 3 - but if A(1) say is equal to ...

9年以上 前 | 2 件の回答 | 0

2

回答

質問


Outputing Array from Nested Why Loops
Hi, The purpose of my code is to save for a number n, say 3, the following in an array A: A(1) = randi(3) A(2) = randi(...

9年以上 前 | 3 件の回答 | 0

3

回答

質問


using fitcknn in matlab
Hi I want to use fitcknn but with an implemented Distance metric, in my case levenshtein: mdl = fitcknn(citynames,cityco...

10年弱 前 | 1 件の回答 | 0

1

回答

質問


Reding csv file which contains numbers and strings
Hi I have a csv file test.csv with some thousands of lines each with three columns in the following style: Wqckwb Pqbbxx...

約10年 前 | 1 件の回答 | 0

1

回答

質問


Installing LibSVM on Mac OSX 10.9.2 (mex file error)
I have tried to install the libsvm package with mex -setup (since "make" resulted in an error). This was followed by one...

約10年 前 | 1 件の回答 | 0

1

回答

質問


Using SVMtrain for multiple linear regression
Hi I have a dataset of the following form: 1) 12.243 15.67 13.879 11.543 13.99 1.3 2) 14.5 11.99 10.98 12.12 ...

約10年 前 | 0 件の回答 | 0

0

回答

質問


error for crossval function
Hi I get an error for the following code: esti = @(x,y)(lasso(x,y)) >> A = crossval(esti,training(:,end-1),training(:,e...

約10年 前 | 0 件の回答 | 0

0

回答

質問


fminsearch error regarding matrix dimensions
Hi I am using fminsearch to minimize the following function: a_d = 13.2414; a_nd = 15.5107; b_d = -1.4207; b_nd...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


Extracting elements from one matrix according to criteria from another matrix
I have the following problem: I have say 100 3-dimensional points, and a correlation matrix A with the correlation of all the po...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


extracting columns with comparison
Hi Given I would have (as a toy example) a matrix A like: A = [ 5 7 -5; 3 8 3; 2 9 2] I would want to e...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


Subscript indices must either be real positive integers or logicals
Hi I have a (huge) matrix A which I have loaded in my workspace, which does contain numbers between -13.286 and 12.456 etc. ...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


looping through symmetric matrices
Hi I have two matrices T and Q, and I want to plot the corresponding elements of them such as in: T = randi(10,10) Q ...

10年以上 前 | 3 件の回答 | 0

3

回答

質問


plotting within nested for loop
Hi This is toy code similar to what I want to achieve: T = randi(10,10) Q = randi(10,10) hold on for i = 1:10 ...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


genpath related question, replacing genpath
I have two questions regarding genpath: (1) When I use genpath as follows: p = genpath('/Users/myname') I get the follo...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


How to check if a cell of arrays only contains disjoint elements?
Hi I have so far the following code: data = xlsread('filename'); % 1000 samples without replacement % each ele...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


Sampling from a set
Hi Given I have a set, my aim is to sample every combination of two samples of size n, which are disjoint. One example: Th...

10年以上 前 | 0 件の回答 | 0

0

回答

質問


Changing Array Elements with logical indexing
Hi If I want to change all NaNs in an array A to zero, the following works: A(isnan(A))=1000 As far as I see the isna...

10年以上 前 | 2 件の回答 | 0

2

回答

質問


Changing field value for all fields in a struct
Hi Given for instance I have a struct as follows: s(2) = struct('name','anna','age',18) s(1) = struct('name','bernd','a...

10年以上 前 | 2 件の回答 | 0

2

回答

質問


Pre-allocation of Cell Arrays
Hi I have two questions regarding the pre-allocation of cell arrays. The online documentation says the following: "Increm...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


Accessing Fields in Structs
Hi I have a more theoretical question to struct arrays in Matlab. Given I have two structures a and b, defined as follows: ...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


Question to mkdir and addpath
Hi As I understand, the following code: mkdir('c:/matlab/myfiles') addpath('c:/matlab/myfiles') First creates ...

10年以上 前 | 1 件の回答 | 0

1

回答

質問


Plotting gamma distributions, pdf
Hi I want to plot different gamma distributions (i.e. gamma distributions with different shape and scale parameters). *Not* ...

11年以上 前 | 0 件の回答 | 0

0

回答

質問


Implementing a Simple Algorithm with Loops
Hi I want to implement the following algorithm: I have a value a = 1000. I want to draw a random number from the geometri...

11年以上 前 | 0 件の回答 | 0

0

回答

質問


Syntax Error: Unknown Function
Hi, for the following code: n = 50000; g = 0.3; x = []; for i=1:n k = 0; while unifrnd(0,1) ...

11年以上 前 | 2 件の回答 | 0

2

回答

さらに読み込む