How to create a smooth heatmap for 1D ?
Show older comments
I have the temperature values for the variable Y for 8 node points in 1D . Now when I try to plot I get the temperature gradient as individual boxes as shown below. I dont want this. The code for achieving this result is shown below

Y =
1.0e+03 *
4.1962
3.5087
2.8783
2.3026
1.7775
1.2967
0.8516
0.4318
figure(1)
imagesc(Y)
axis equal
axis off
colorbar;

I need to get an smooth image like the one shown in second figure where the transition is smooth between the temperature gradients.
Any help will be appreciated !
1 Comment
infinity
on 13 Jul 2019
Hello,
The problem is that your data is very coarse. You got the temperature only at 8 points. One of the tasks you shoud be done first is to inpterpolate your data to the finer mesh.
When you obtain smoother data, you can plot smoother figure.
Accepted Answer
More Answers (0)
Categories
Find more on Blue in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!