Pregunta


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...

casi 9 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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 - ...

casi 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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. ...

casi 9 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

casi 9 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

casi 9 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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...

casi 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

casi 9 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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(...

casi 9 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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

más de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

más de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

más de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

más de 9 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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...

más de 9 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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. ...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

casi 10 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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 ...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 10 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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...

alrededor de 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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: ...

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 10 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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...

casi 11 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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) ...

casi 11 años hace | 2 respuestas | 0

2

respuestas

Cargar más