Answered

Looping through a 3D matrix

Damith, By including the indices in the variable names, you end up with a lot of places where you need to build up strings fo...

Looping through a 3D matrix

Damith, By including the indices in the variable names, you end up with a lot of places where you need to build up strings fo...

2 years ago | 0

Answered

Freeing GPU memory associated with CUDA kernels

Jeremy, In that case, I am puzzled as to what is going on. I would recommend you contact technical support and try to give t...

Freeing GPU memory associated with CUDA kernels

Jeremy, In that case, I am puzzled as to what is going on. I would recommend you contact technical support and try to give t...

4 years ago | 0

Answered

Using a templated CUDA kernel via MATLAB

Alex, Allow me to quote from the help for parallel.gpu.CUDAKernel and try to parse it for you. If you have suggestions for h...

Using a templated CUDA kernel via MATLAB

Alex, Allow me to quote from the help for parallel.gpu.CUDAKernel and try to parse it for you. If you have suggestions for h...

4 years ago | 0

| accepted

Answered

Freeing GPU memory associated with CUDA kernels

Jeremy, How large is the PTX for the kernels you are loading via the CUDAKernel interface? The CUDAKernel object in MATL...

Freeing GPU memory associated with CUDA kernels

Jeremy, How large is the PTX for the kernels you are loading via the CUDAKernel interface? The CUDAKernel object in MATL...

4 years ago | 0

Answered

How to run arrayfun with a GPU?

Inside arrayfun, one can only perform computations with scalars, so vector and matrix computations are not supported. In partic...

How to run arrayfun with a GPU?

Inside arrayfun, one can only perform computations with scalars, so vector and matrix computations are not supported. In partic...

4 years ago | 2

| accepted

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

5 years ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

5 years ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

5 years ago

Solved

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

5 years ago

Solved

Back and Forth Rows

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

5 years ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

5 years ago

Solved

Find the numeric mean of the prime numbers in a matrix.

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

5 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

5 years ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

5 years ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

5 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

5 years ago

Responded

Re: mdce server not reachable

Nachiketa, I suggest you contact install support to get help for this problem. They should be able to help you much more quick...

6 years ago | 6006 views

Responded

Re: Can I assign all the workers in a cluster to a single matlabpool?

Marc, Judging from a previous post of yours, half your workers are running on a 32 bit system, and the other half on a 64 bit s...

6 years ago | 2477 views

Responded

Re: parallel Matlab warning problem:Type-ahead buffer overflow

Lei, Is it possible you are using input redirection rather than the -r flag? See http://www.mathworks.com/support/bugreports/...

7 years ago | 4501 views

Responded

Re: fminsearch mid optimization crash with parfor

Rebecca, You don't state which release you are running, but if it is 8b or 9a then have a look at http://www.mathworks.com/sup...

7 years ago | 3160 views

Responded

Re: Memory leak using spmd

This is clearly a bug! Sorry for the inconvenience and thank you for letting us know. This appers to significantly affect spmd...

7 years ago | 1394 views

Responded

Re: Poor speedup using parfor and FEM calculation

It is quite possible that you run into some type of a resource contention on your computer when trying to run your problem in pa...

7 years ago | 1558 views

Responded

Re: parallel computing, extreme slow code execution

Michael, I need more information in order to be able to understand what is going on: - How long does each call to b3Spline take...

7 years ago | 3037 views

Responded

Re: Invisible GUI created inside SPMD block

The spmd body executes on the workers and they do not have access to the display, so there is no way of doing this short of doin...

7 years ago | 1994 views

Responded

Re: Invisible GUI created inside SPMD block

Matt, The body of the spmd block executes on the workers, and they do not have access to your display. Most graphics and GUI f...

7 years ago | 1994 views

Responded

Re: Parallel computing

Terfil, Have you looked at the product demos? They might be a good place to start, both for benchmarking in general and benchm...

7 years ago | 2162 views

Responded

Re: matlabpool timeout?

Ryan, Please call technical support to get help with what your options might be. Best, Narfi

7 years ago | 2117 views

Responded

Re: MDCS: Out of memory on worker

Andres, Did you view the bug reports for Parallel Computing Toolbox on the web site? This could be product bug 528950. Could ...

7 years ago | 2898 views

Responded

Re: Need help to make this simple parfor loop run faster

Your original loop looked something like: Could you instrument the execution by judiciously inserting tics and tocs: iterTimes ...

8 years ago | 5703 views