Question

Vectorized method to find the number of consecutive 1s from the left of an array

Hi, I want to find the number of consecutive 1s from the left of an array (a binary array). For example, if I have A = [1 1 1 0 ...

1 year ago | 1 answer | 0

Submitted

ManhTruongDang/PingPongGANN

An AI for PingPong using Neural network and Genetic Algorithm

2 years ago | 1 download |

Submitted

ManhTruongDang/RecursiveObj

This is an utility class to perform recursively on file directories

2 years ago | 0 downloads |

Submitted

Load Libsvm files incrementally (one row at a time)

This class provides a way to load Libsvm files incrementally. Useful for very large files

3 years ago | 1 download |

Question

Is it possible to call Matlab from Java asynchronously ?

Hi, I am aware of utilities like https://code.google.com/archive/p/matlabcontrol/wikis/Walkthrough.wiki where you can call a Mat...

3 years ago | 1 answer | 0

Question

Matlab's profiler does not show anything

<</matlabcentral/answers/uploaded_files/76527/profiler.PNG>> Hi, I'm trying optimize a program, yet for some reasons when the...

3 years ago | 1 answer | 0

Answered

Why do I receive a LIBC.lib error when doing a MEX compilation in MATLAB 7.9 (R2009b)?

You could just search for the file, then put it in matlab's working directory. I encountered a similar situation (matlab R2016b,...

Why do I receive a LIBC.lib error when doing a MEX compilation in MATLAB 7.9 (R2009b)?

You could just search for the file, then put it in matlab's working directory. I encountered a similar situation (matlab R2016b,...

3 years ago | 0

Question

Mexcuda error on Windows 10 (Matlab 2016b)

Hi, I'm using Windows 10, here is the compilers used by mex (as you can see I'm using Visual studio C++ 2015): >> mex -setu...

3 years ago | 3 answers | 0

Question

MATLAB - How to force a specific variable to be stored in memory?

I have a cell array of classifiers (for example, decision trees) trainmodel = cell(1,100000). And sometimes this thing gets real...

3 years ago | 0 answers | 0

Question

How to efficiently implement k-nearest neighbor algorithm in a gpu?

Hi, here is my gpu information: >> gpuDevice ans = CUDADevice with properties: ...

3 years ago | 0 answers | 0

Question

Should I use parfor on an already multithreaded function (decision tree,...)?

Hi, I want to train many decision trees in parallel by using parfor, but I've heard elsewhere that they are multithreaded, so sh...

3 years ago | 1 answer | 0

Answered

Why do I see a "java.util.zip.ZipException" error in my installer log file when I try to install the MinGW support package?

Followed the steps outlined by the support team (windows 10, matlab r2016b), and it worked! Thanks a lot!

Why do I see a "java.util.zip.ZipException" error in my installer log file when I try to install the MinGW support package?

Followed the steps outlined by the support team (windows 10, matlab r2016b), and it worked! Thanks a lot!

3 years ago | 0

Question

Is it possible to create a tall array from a .mat file which contains only 1 variable?

Hi, I've read the documentation about tall array and they usually create one on top of a datastore: ds = datastore(file_nam...

3 years ago | 0 answers | 1

Question

Practical k-nearest neighbors implementation with big data set

My data looks like this K = 200; % Could go up to 1000, or more.... X = cell(1,K); Y = cell(1,K); num_of_neighbors...

3 years ago | 0 answers | 0

Question

GPU time slower than CPU time in Mandrelbolt set example?

Hi, I'm following the Mandrelbolt set example featured on Mathworks's blog: http://blogs.mathworks.com/loren/2011/07/18/a-mand...

3 years ago | 2 answers | 0

Question

Does the Machine learning toolbox (decision tree,...) support GPU

Hi, I'm currently using Matlab R2015a, and I wish to take advantage of the GPU to speedup my code. However, when I used a decisi...

3 years ago | 1 answer | 0

Question

Find K smallest elements in a vector where K is very small

I'm trying to speedup my Matlab program using GPU, but since the function "knnsearch" does not support GPU, I decided to write m...

3 years ago | 2 answers | 0

Question

Does knnsearch guarantee points in ascending distance order?

Hi, I need to find the k-nearest neihgbors of a test point, but I also need to be sure that they are sorted in ascending order t...

3 years ago | 0 answers | 0

Question

How can I vectorize this piece of code for loading cross-validation from file ?

So I am supposed to load the cross-validation folds from a file (10 iterations, each is 10-folds, so a total of 100, arranged se...

3 years ago | 1 answer | 0