Answered
How do I search through a tall array element by element?
You can make this code work by writing if gather(tA(i) == 0.5) disp('i is equal to 0.5') end however this will...

9 years ago | 0

| accepted

Answered
parallel.pool.Constant: An error occurred building a parallel.pool.Constant.
That error means that a worker crashed for some reason, I strongly suspect out-of-memory. Note that your |z| matrix is _huge_ - ...

9 years ago | 0

| accepted

Answered
How to avoid memory leaks when function inside parfor generates warning?
This problem is the subject of this <https://www.mathworks.com/support/bugreports/1372271 bug report>. If you are able to upgrad...

9 years ago | 1

| accepted

Answered
How can I combine two categorical columns of a tall table?
You can use |join|, like so: join([string(tx.Var1), string(tx.Var2)])

9 years ago | 0

Answered
Can I share a copy of a CONSTANT large array between workers of a parpool?
You might be able to combine use of |parallel.pool.Constant| with <https://www.mathworks.com/matlabcentral/fileexchange/28572-sh...

9 years ago | 0

Answered
Parpool: can't use windows and linux workers simultaneously.
Unfortunately, the MPI infrastructure used to support |spmd| does not allow mixing of Linux and Windows workers.

9 years ago | 0

| accepted

Answered
Accumarray with tall arrays
You can use <https://www.mathworks.com/help/matlab/ref/findgroups.html |findgroups|> and <https://www.mathworks.com/help/matlab/...

9 years ago | 1

| accepted

Answered
Hey, need help in filtering an image using PARFOR, been getting an error saying the varible hatx in a parfor cannot be classified.
The problem here is actually the fact that you've got two |for| loops iterating over values of |k|. You can see this with the fo...

9 years ago | 2

| accepted

Answered
How to use spmd with heavy input data ?
When using |spmd|, your best bet is to create the arrays within the |spmd| block itself, rather than transferring it from the cl...

9 years ago | 1

Answered
nvcc fatal : Unsupported gpu architecture 'compute_13' ??
To create GPU MEX files, you need to ensure that you have installed the version of the CUDA toolkit corresponding to the one use...

9 years ago | 1

Answered
How to make two uneven sized tables of even length and check and fill in missing data with NaN?
If you're using MATLAB R2016b, you can use the new <https://www.mathworks.com/help/matlab/ref/timetable.html |timetable|> class ...

9 years ago | 0

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

9 years ago

Answered
Using parfeval for sequential calculations
As you observe, there is no way to pre-allocate arrays of |FevalFuture| objects. In this case, I would simply use |cell| arrays ...

9 years ago | 2

| accepted

Answered
How to publish ROS message inside a parfor loop?
I think what you need to do here is ensure you call |rosmessage| and |rospublisher| directly on the workers. One way to do that ...

9 years ago | 0

| accepted

Answered
Why can't I use the interface with Cantera in a batch job
It looks like there are additional dependencies for |ctmethods.mexw64| that are not being picked up automatically, so you might ...

9 years ago | 0

Answered
How to parallelize access to cell array
The workers that execute the body of |parfor| loops are separate MATLAB processes, and there is no automatic synchronisation of ...

9 years ago | 0

| accepted

Answered
Arrayfun with multidimensional input
You can do this by "binding" in |M| to your function handle, using an <https://www.mathworks.com/help/matlab/matlab_prog/anonymo...

9 years ago | 0

| accepted

Answered
Parallel pool: Conversion to double from cell is not possible
The problem here is that you haven't pre-allocated |S|, and unfortunately this doesn't quite work out correctly in |parfor|. The...

9 years ago | 1

Answered
Functions arrayfun and roots with GPU computing
The list of functions supported for use with |gpuArray| |arrayfun| is <https://www.mathworks.com/help/releases/R2016b/distcomp/r...

9 years ago | 0

| accepted

Answered
Dynamic variable names for full workspace operations
For the |gpuArray| case, you could simply use |save| and |load|, i.e. tempFile = tempname(); save(tempFile); reset(gp...

9 years ago | 1

Answered
how to read data and process it from text file in chunks without saving the data in Matlab
In recent versions of MATLAB (R2014b or later), you can use a <http://www.mathworks.com/help/matlab/ref/datastore.html |datastor...

9 years ago | 2

| accepted

Answered
How can I listen for completion of a job?
Unfortunately, there's currently no way to get event notifications from the |parallel.Future| objects returned by |parfeval|. ...

9 years ago | 1

Answered
How to stop figures from opening while waiting for parfeval with figure as input to finish
When you get ask the |FevalQueue| to give you the futures, they effectively get re-loaded from a stored version (roughly equival...

9 years ago | 1

Answered
Matlab workers in Parloop are not using the path order
This appears to be a problem with the automatic path mirroring that is used when setting up a parallel pool. Things work correct...

9 years ago | 0

| accepted

Answered
Debug a GPU function
The body of an |arrayfun| call is run on the GPU using a translation of the MATLAB code to a native form for the GPU. This gives...

9 years ago | 1

| accepted

Answered
what gpu's are supported
See <https://www.mathworks.com/discovery/matlab-gpu.html this page> for details of supported GPUs. You also need the latest <htt...

9 years ago | 0

| accepted

Answered
How do I plot a temporary variable in a parfor loop?
Unfortunately, parallel pool workers are separate MATLAB processes, and they cannot access the same figure handles that your des...

9 years ago | 0

| accepted

Answered
Parallelizing the Ising spin lattice (or Conway's game of life)
There's a similar example showing how to run this sort of "stencil" operation on the GPU <https://uk.mathworks.com/help/distcomp...

9 years ago | 2

Answered
MATLAB parallel loop with slight delays
You could use |spmd| to do this, but note that the following approach isn't completely ideal because it adds additional synchron...

9 years ago | 0

Answered
Invoke function in a parfor loop
The problem appears to be with passing COM objects to the workers. You need to build the COM object on the workers. One way (if ...

9 years ago | 0

| accepted

Load more