photo

Christopher


Last seen: 1 year ago Active since 2013

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


replace values in columns of a matrix
I have a matrix of random numbers, with some repeating. For example: OV = 29.5 -29.3 82.2 -49.1 12.6 -62.2 82.2 -72.8...

10 years ago | 1 answer | 0

1

answer

Question


get indices for part of a matrix
I have the matrix T, I want to get the indices of a part this matrix. I would imagine using a function of the form: ind1 =...

10 years ago | 1 answer | 0

1

answer

Question


How to specify number of threads a matlab session can use
I have read many other 'answers' on this matter, but I am not succeeding. I have a heavily vectorized code that I want to run...

10 years ago | 1 answer | 0

1

answer

Question


Only mask elements of some value with conv2
I want to use convolution, or something like convolution, to perform sum over neighboring elements. So normally I could use ...

10 years ago | 1 answer | 1

1

answer

Question


Problem with logical indexing with arbitrary indices
I have the code: aarray(find(r(1,1)==1)) = bindices(end); where aarray is a row vector, r is a matrix, and bindices is ...

10 years ago | 1 answer | 0

1

answer

Question


Make index of elements based on random values in another matrix
I have the following two matrices, one of random numbers, and the other of a random integer 1-8: X = rand(10,10); r = rou...

10 years ago | 2 answers | 0

2

answers

Question


sample neighboring elements in a matrix
r = round(0.5+randi(8,size(10,10))*8); % I have the matrix of random integers r1 = r(1:3:end,1:3:end); % I sample every elem...

10 years ago | 0 answers | 0

0

answers

Question


problem with vector logic
Why doesn't the final logical operation work? Oneigh=zeros(10,10); r = round(0.5+rand(10,10)*8); Oneigh(r==1)=r; ...

10 years ago | 2 answers | 0

2

answers

Question


How to reassemble tessellated matrix?
I am able to "tessellate" a matrix into 4 smaller matrices by deleting rows and columns as follows: r= rand(size(P)); r1...

10 years ago | 1 answer | 1

1

answer

Question


Save a matrix to a file with an array of matrices without loading all of the data
I have the (example) matrix rand(1000,1000) generated in a loop. For each loop I want the data in this matrix to be saved to a f...

11 years ago | 1 answer | 0

1

answer

Question


Fastest calculation method to: Count elements in a matrix, in the neighborhood of some element, having some value
For an element (i,j) in a matrix I want to calculate the number of neighboring elements which have the same value as that in (i,...

11 years ago | 1 answer | 1

1

answer

Question


64-bit MATLAB student version
Is there a 64 bit student version of matlab? 32 bit matlab only allows use of 4 GB of memory. Unfortunately, it is almost the y...

11 years ago | 1 answer | 0

1

answer