Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- load fisheriris
- [Y2,loss2] = tsne(meas,'Algorithm','exact','NumDimensions',3);
- figure
- v = double(categorical(species));
- c = full(sparse(1:numel(v),v,ones(size(v)),numel(v),3));
- scatter3(Y2(:,1),Y2(:,2),Y2(:,3),15,c,'filled')
- title('3-D Embedding')
- view(-50,8)
- Error using sparse
- Index exceeds array bounds.
- c = full(sparse(1:numel(v), v, ones(size(v)), numel(v), 3));
- where numel(v) = 9339, size(v) = 9339 x 1 double
- c = full(sparse(1:numel(v), v, ones(size(v)), numel(v), 25));
- Error using scatter3 (line 109)
- 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