Skip to main content

All Questions

0 votes
1 answer
253 views

How to distinguish multiple overlapping lines on MATLAB graphs?

How can I distinguish multiple overlapping lines on MATLAB graphs like this?
Furqan Zia's user avatar
2 votes
2 answers
73 views

Move line in legend

I have a cell array with four strings which is used as legend for four individual X,Y plots. One string is very long and therefore divided into a four-line legend by sprintf, The four plot legend is ...
user avatar
0 votes
1 answer
562 views

Legend in bar3 in MATLAB

I can't figure out how to create the legends (for colors) in the attached code? test1=[5 10 7; 1 100 0; 1 3 2]; test2=[10 15 10; 10 80 10; 5 5 15]; test3=[10 10 10; 20 200 20; ...
Reza 's user avatar
  • 11
3 votes
1 answer
742 views

How to add legend in a highlighted graph?

I want to add legend in a graph G according to different highlighted edges. Is it possible to do it with only one graph G? Here is a toy example to play with. I have a plot G. adj =[0 0 1 1 1; % ...
Yolanda Wang's user avatar