How to differentiate between each plot when every time I change the parameters from GUI, it updates same figure with new output?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
shrivardhan suryawanshi
el 7 de Nov. de 2016
Comentada: KSSV
el 16 de Nov. de 2016
I have designed one GUI for my technical analysis and comparison of process and controller output.Each time when I change the external parameters from GUI,I am getting same colour output(i.e blue)in same window.When I am comparing two or more outputs,it is becoming little confusing for me to analyse the performance. Is there any other way to segregate/differentiate one output from another?
0 comentarios
Respuesta aceptada
KSSV
el 7 de Nov. de 2016
You can mention color.
plot(x,y,'color','r') ; 'r','b','g' etc...
As it is inside gui, you may not mention color. You may use
plot(x,y,'color',rand(1,3))
Or:
C = {'r' 'b' 'g' 'y' 'm' 'k' 'c'} ; % mention all colors here
plot(x,y,'color',C{randsample(1:length(C),1)}) ; % select color randomly from C
5 comentarios
shrivardhan suryawanshi
el 15 de Nov. de 2016
Editada: shrivardhan suryawanshi
el 15 de Nov. de 2016
KSSV
el 16 de Nov. de 2016
That case, put a count how many times you are calling that function and use this count.
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!