sparse matrix - Changing display of spy in Matlab -


i'm trying different elements of sparse matrix different colors (filled in), doesn't seem work black. if change out black different color, weird blurb

spy(a,'ks',3) markerh = findall(gca,'color','k'); set(markerh,'markerfacecolor','k'); hold on spy(a==10,'gs',3) markerh = findall(gca,'color','g'); set(markerh,'markerfacecolor','g'); hold off 

how can work?

because other objects text may have color property , black. use

markerh = findall(gca,'type','line','color','k'); 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -