how do you plot 3 similar data sets on the same graph in different colors in MATLAB? -


how plot following data in same figure using matlab?

enter image description here

frequency measured in hertz (hz) , should horizontal axis. fall time measured in microseconds (us) , should vertical axis.

freq1 goes falltime1 freq2 goes falltime2 freq3 goes falltime3

they should in different colors , graph should have legend.

how can achieve in matlab?

the hold on command want.

figure hold on plot(freq1, falltime1, 'r-o') % plot in red, circles connected lines plot(freq2, falltime2, 'g-o') % plot in green, circles connected lines plot(freq3, falltime3, 'b-o') % plot in blue, circles connected lines legend('1', '2', '3') % legend text xlabel('hertz (hz)') ylabel('fall time (\mus)') 

plot of 3 data sets on same figure


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -