MATLAB Answers

How to plot heatmap using gpuArray?

1 view (last 30 days)
Arjun Tejani
Arjun Tejani on 22 Mar 2021
Answered: Joss Knight on 24 Mar 2021
Hello,
I am having 6000 cordinates of (x,y) Locations and each has particular values. I want to plot a heatmap.
For now I am using :
[X,Y] =meshgrid(x,y);
F= scatteredInterpolant(x,y,zi);
contourf(X,Y,F(X,Y),100,'LineColor','none')
which is taking almost 3-4 minutes to plot a heatmap. I was hoping to use gpuArray function. But it seems not working :/

Answers (1)

Joss Knight
Joss Knight on 24 Mar 2021
Sorry, scatteredInterpolant doesn't support gpuArray.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by