Getting x and y arrays of surf(z)
2 次查看(过去 30 天)
显示 更早的评论
Hi,
This might be a hard to explain question; I have an intensity array that I use to get a surf(Z) of a hemisphere. Is there a way to get the equivalent x and y arrays of these intensities, ie, if I were to surf(x,y,z) of these 3 I would get the same result? Maybe a different way of asking would be, can I split surf(Z) into surf(x,y,z) and get the same result. Because I need to have these x and y arrays also to compare my hemisphere to a matlab generated sphere. Thanks.
Raf
0 个评论
采纳的回答
Guillaume
2014-10-8
If you've just generated your surface with
surf(z)
Then
[x, y] = meshgrid(1:size(z, 2), 1:size(z, 1));
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!