MATLAB Answers

how to display scatter in GUI?

조회 수: 5(최근 30일)
Muhammad RSMY
Muhammad RSMY 28 Feb 2018
편집: Muhammad RSMY 28 Feb 2018
hi guys
please need help, how to disply 3D scatter in GUI
Thanks

  댓글 수: 0

로그인 to comment.

답변(1개)

Tamir Suliman
Tamir Suliman 28 Feb 2018
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 28 Feb 2018
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

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그


Translated by