How To Put Legend In Matlab Code Example


Example: add manual legend matlab

h1=plot([1:10],'Color','r','DisplayName','This one');hold on; h2=plot([1:2:10],'Color','b','DisplayName','This two'); h3=plot([1:3:10],'Color','k','DisplayName','This three'); legend([h1 h3],{'Legend 1','Legend 3'})

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable