does any one know how to generate this kind of graph and what it is called...??
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
ali ahmed
le 13 Nov 2017
Commenté : Walter Roberson
le 18 Nov 2017
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169559/image.png)
What varialbles will i be needing to generate such a graph...??
0 commentaires
Réponse acceptée
Walter Roberson
le 13 Nov 2017
image() or imshow() can potentially generate the left part. The right part is colorbar()
You would need a matrix of temperature data, with the matrix having roughly 3 times as many rows as columns.
I do not think the output is symmetric -- the green band towards the upper left corner is wider than the green band towards the lower right. It will not be enough to have a radius and a drop-off function as just a function of the radius.
4 commentaires
Walter Roberson
le 18 Nov 2017
With that resolution of data, about the most you can justify is
imagesc(t);
set(gca, 'ydir', 'normal')
But you could
[r, c] = size(t);
newx = linspace(1,c);
newy = linspace(1,r);
G = griddata(1:c, 1:r, t, newx, newy.');
imagesc([1,c],[1,r],G)
set(gca, 'ydir', 'normal')
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!