Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR MATLAB

display sequence in matlab

function displaySequence(X,Y)
clrOrder = get(gca,'ColorOrder');
classNames = categories(removecats(Y));
grps = findgroups(Y);
gscatter(1:length(X),X,grps,clrOrder(1:3,:))
legend(classNames)
xlabel('Time (samples)')
ylabel('')
end
Source by matlabacademy.mathworks.com #
 
PREVIOUS NEXT
Tagged: #display #sequence #matlab
ADD COMMENT
Topic
Name
8+2 =