Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

Asked by Zach White on 27 Mar 2013
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]);

1 Comment

Youssef KHMOU on 27 Mar 2013

hi can you repost properly the code

Zach White

Tags

Products

No products are associated with this question.

1 Answer

Answer by Youssef KHMOU on 27 Mar 2013
Edited by 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

0 Comments

Youssef  KHMOU

Contact us