I need help interpreting what this means. Could you give me detail to what this means. I need to be able to put it into words I am dealing with the dealing of tagging with animals

1 view (last 30 days)
hold on
plot ( time_r1 (idx_r1_A1), tag_num_r1 (idx_r1_A1), 'b+')
plot ( time_r1 (idx_r1_A2), tag_num_r1 (idx_r1_A2), 'bo')
l1 = legend ('Ramp A1', 'Ramp A2');
set (l1, 'Box', 'off');
plot ( time_r2 (idx_r2_A1), tag_num_r2 (idx_r2_A1), 'b+')
plot ( time_r2 (idx_r2_A2), tag_num_r2 (idx_r2_A2), 'bo')
dateaxis ('x', 6);
xlabel ('Time (MM/DD)');
ylabel ('RFID tag number');
set (gca, 'YLim', [300 800]);

Answers (1)

Youssef  Khmou
Youssef Khmou on 27 Mar 2013
Edited: Youssef Khmou on 27 Mar 2013
hold on,
This commands holds the current graph to add new ones .
plot ( time_r1 (idx_r1_A1), tag_num_r1 (idx_r1_A1), 'b+')
This plots the vector 'tag_num_r1' vs time ' time_r1'
plot ( time_r1 (idx_r1_A2), tag_num_r1 (idx_r1_A2), 'bo')
the tag and time are stored in matrices time_r1 and tag_num_r1 , to get theirs sizes type :
>>size(time_num_r1)
l1 = legend ('Ramp A1', 'Ramp A2');
This char is the legend for tag_numr1(idx_r1_A1) and tag_numr1(idx_r1_A2)
set (l1, 'Box', 'off');
Setting the legend with no box .
plot ( time_r2 (idx_r2_A1), tag_num_r2 (idx_r2_A1), 'b+')
plot ( time_r2 (idx_r2_A2), tag_num_r2 (idx_r2_A2), 'bo')
the same as the command 'plot' with two different styles 'bo' and 'b+'
dateaxis ('x', 6);
this command converts the X-axis labels to the month/day format.
xlabel ('Time (MM/DD)');
ylabel ('RFID tag number');
XLABEL and YLABEL as what ths x/y axis means ( theirs units, etc...)
set (gca, 'YLim', [300 800]);
this command truncates the current y-axis to get the range 300:...:600

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!