how to display scatter in GUI?

2 次查看(过去 30 天)
Muhammad RSMY
Muhammad RSMY 2018-2-28
hi guys
please need help, how to disply 3D scatter in GUI
Thanks

回答(1 个)

Tamir Suliman
Tamir Suliman 2018-2-28
do you need to plot it use the scatter3 command please post your code Reference below :
https://www.mathworks.com/help/matlab/ref/scatter3.html
  1 个评论
Muhammad RSMY
Muhammad RSMY 2018-2-28
编辑:Muhammad RSMY 2018-2-28
Thanks for your comment Tamir Suliman
the code is working fine to display scatter3, but the problem when I built GUI its give an error
here is code
D = indata{1};
out3 = reshape(D,[mm,nn,k]);
idx = find(out3);
[X, Y, Z] = ind2sub(size(out3), idx);
pointsize = 40;
scatter3(X(:), Y(:), Z(:), pointsize, out3(idx),'square','filled');
colormap jet
colorbar

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by