Question

Parallel calculations on matlab

Hello, As discussed in other posts, I understood that some functions are parallelized in Matlab, so they are fast in serial c...

mer än 3 år ago | 2 answers | 0

Question

apply arrayfun for a couple of values

Hello, I wrote a syntax that calculate values of a function in different values. For example x1=[1 2 10 11]; x2...

nästan 4 år ago | 1 answer | 0

Question

calculate displacement between 2 images

Hello, I would like to ask a question about normalized cross correlation. Indeed,the steps of calculation of normalized c...

nästan 4 år ago | 0 answers | 0

Question

Effect of a translation on cross correlation

Hello, To find displacement of a particle, I calculated the cross correlation between two instants (represented by two images...

nästan 4 år ago | 0 answers | 0

Question

Maximum of normxcorr2

Hello, I need to calculate the maximum of normalized cross correlation of million of particles. The size of the two parameter...

nästan 4 år ago | 0 answers | 0

Question

Efficient use of memory

Hello, If i create a cell with 1000 matrices ( size of each matrix 800*1280), clearing each matrix after using it will speed ...

nästan 4 år ago | 1 answer | 0

Question

error " Assignment has fewer non singleton rhs dimensions than non singleton subscripts"

Hello, I have 2 arrays that represent indexes of a matrix, for example idx =[ 1 5 ] and idy = [ 2 3] . When I execute this line...

nästan 4 år ago | 1 answer | 0

Question

compare two arrays of different length ( inequality)

Hello, I have two arrays with different length, for example A =[ 2 3 11 0 8 ] and B=[ 2 6 8] ( The data are bigger in the real ...

nästan 4 år ago | 2 answers | 0

Question

()-indexing must appear last in an index expression

Hello, I wrote this code i=(find(A)~=0); % find indexes that verify this condition % B is a cell B(i) (end:A(i),en...

nästan 4 år ago | 1 answer | 0

Question

load a parallel pool constant

Hello, I built a parallel pool constant from a cell(55,1) which contains large matrix's, and it took 5 minutes. When i don't ...

nästan 4 år ago | 0 answers | 0

Question

different result between gpuArray / matrix

Hello, I tried to compare the result between two codes two inputs with the same function: function local_sum_A = local_sum...

nästan 4 år ago | 0 answers | 0

Question

my code is slower with a parfor loop

Hello, I ran this code in a computer with 44 workers. However, it's slower than the for version. template=cell(31,1...

nästan 4 år ago | 1 answer | 0

Question

cell as an input argument for normxcorr2

Hello, I want to calculate normalized cross correlation for an image with a lot of templates(31 templates). When I define templ...

nästan 4 år ago | 0 answers | 0

Question

time of execution of a code in matlab

Hello, To compare the time of execution of two functions, i wrote a code where i measure the time elapsed for each function a...

ungefär 4 år ago | 1 answer | 0