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 Ansicht (letzte 30 Tage)
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]);

Antworten (1)

Youssef  Khmou
Youssef Khmou am 27 Mär. 2013
Bearbeitet: Youssef Khmou am 27 Mär. 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

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by