Guest User

Untitled

a guest
Jul 17th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. load fisheriris
  2. [Y2,loss2] = tsne(meas,'Algorithm','exact','NumDimensions',3);
  3. figure
  4. v = double(categorical(species));
  5. c = full(sparse(1:numel(v),v,ones(size(v)),numel(v),3));
  6. scatter3(Y2(:,1),Y2(:,2),Y2(:,3),15,c,'filled')
  7. title('3-D Embedding')
  8. view(-50,8)
  9.  
  10. Error using sparse
  11. Index exceeds array bounds.
  12.  
  13. c = full(sparse(1:numel(v), v, ones(size(v)), numel(v), 3));
  14. where numel(v) = 9339, size(v) = 9339 x 1 double
  15.  
  16. c = full(sparse(1:numel(v), v, ones(size(v)), numel(v), 25));
  17.  
  18. Error using scatter3 (line 109)
  19. C must be a single color, a vector the same length as X, or an M-by-3 matrix.
Add Comment
Please, Sign In to add comment