why legend for multiple matrix is not showing the appropriate data?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
suchismita
el 24 de Jun. de 2014
Comentada: Ben11
el 25 de Jun. de 2014
I have 6 matrix as A=rand(10,10),B=rand(10,10),C=rand(10,10) and a=rand(10,10),b=rand(10,10),c=rand(10,10). i want to plot all elements as plot(a,A,'r*',b,B,'b+',c,C,'go'); i am able to plot this way but while calling legend i am facing problem.
i want legend('a','b','c'); where a will indicate red color *,b as blue + and c as green o.
can it be done please help me...i am getting output as
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164714/image.jpeg)
3 comentarios
Respuesta aceptada
Ben11
el 24 de Jun. de 2014
When I run your code I get this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175152/image.jpeg)
Could you be more precise as to what exactly you want?
6 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!