Question

Add contours to scatter3 plot

Hi, Is there a way to add contours on the walls of this kind of plot? The points are projected onto the walls. x = mvnr...

3 years ago | 1 answer | 0

Question

3D coordinates vectors. Sum along one of the dimentions of resulting volume

Hello, I have a 3D data in a form of 3 vectors: X, Y, Z. I want to sum the resulting volume along on of the dimentions. What ...

3 years ago | 1 answer | 0

Question

Vectorized code slower than loops?

This question is a bit an offspring from an other one, but I have the following two codes: maxN = 100; levels = maxN+1; ...

4 years ago | 1 answer | 0

Question

Speeding up code: vectorization and others

Hi, Is there a way to speed this up even more? I did what I could already: everything is precomputed, preallocated etc. and c...

4 years ago | 1 answer | 0

Question

Gaussian Mixture Model fit question

Hello, I dont understand everything in the example below. In my case, I have a 2D matrix (an image) of data and want to find ...

4 years ago | 0 answers | 0

Question

How to speed this up - large variable

Hello, Is there a way to speed this up? This if within a function and i can use codegen - and I do. But I need to speed this ...

4 years ago | 1 answer | 0

Question

Can I vectorize this any further?

Hello, I have such a code: maxN = 100; xElements = 200; XY = ones(xElements, xElements); % for simplicity, if fact...

4 years ago | 1 answer | 0

Question

How to speed up this loops?

Hi, Is there a way to speed up this? maxN = 120; x = -30:0.1:30; xElements = numel(x); u_mn = zeros(xElements, ...

5 years ago | 1 answer | 0

Question

How to vectorize this ?

It seems I dont understand sth about vectorization. Aj = zeros(1, jCount); % it is filled in reality, but here I just swo...

5 years ago | 1 answer | 0

Question

Random numbers from complex PDF

Hi, I need to generate random complex numbers. My PDF looks like this: [X, Y] = meshgrid( span, span ); alfaJ = X + 1...

5 years ago | 1 answer | 0

Question

Fast FFT convolution in 2D

Hello, Is there a way to do fast 2D convolution according to: <http://undocumentedmatlab.com/blog/convolution-performance#co...

5 years ago | 1 answer | 0

Question

Move all counts of the image in random direction

I have the following problem. I have 8-bit image. It represents photon counts, so each pixel is capable to register up to 255 ph...

5 years ago | 1 answer | 0

Question

How to force nansum(NaN+ NaN) = NaN, not 0 ?

Hello, I need to sum some multidimentional arrays after SPMD processing. This arrays contains also NaNs, but I need to comput...

5 years ago | 1 answer | 0

Question

Matrix center-symetry meter

How to check how much symetric around it`s center is this type of matrix? I think there should be a lot easier and faster way th...

5 years ago | 2 answers | 0

Question

Adding SPMD results - no loop

I have some multiple outputs from SPMD, each containing dofferent part of matrix: finalImage = cell2mat(finalImageAll(1)) +...

5 years ago | 1 answer | 0

Question

Datacube indexing speed up

I use some weighted probability routines and the following code is to slow. Is there a way to optimize it? I already preallocate...

5 years ago | 1 answer | 0

Answered

Sliding neighborhood - how to vectorize?

Thank you, I implemented it like this (toc after figure, preallocation): signalInBlock2 = zeros(230, 230); tic arr...

Sliding neighborhood - how to vectorize?

Thank you, I implemented it like this (toc after figure, preallocation): signalInBlock2 = zeros(230, 230); tic arr...

5 years ago | 0

Question

Sliding neighborhood - how to vectorize?

Dear all, Can you please help me to vectorize (or speed-up somehow else) this code? Below is the original (parfor) version a...

5 years ago | 2 answers | 0