Answers for "display sequence in matlab"

0

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
Posted by: Guest on March-23-2020

Browse Popular Code Answers by Language