Draw rectangle graph when multiple rows exist in Matlab -
i have 2 rows data follows :
sta0 = '0 -> 2 1.000000 1.000200 a-mpdu 1.000000 1.000100 success 1.000100 1.000200 fail no' '0 no nan 1.000270 1.000570 backoff nan nan no nan nan no no' i want make graph in matlab :

so far can make graph when 1 row exists backoff rectangle doesn't exist.

how make these 2 rows can drawn graph above ?
to draw colored rectangles, check out saturn fiddle.
figure; hold all; xlim([0,1]); ylim([0,1]); set(gca,'visible','off'); rectangle('position',[0,0,.5,.5],'facecolor',[1,0,0]); rectangle('position',[.5,.5,.2,.2],'facecolor',[0,0,1],'edgecolor',[0,0,0],'linewidth',4,'linestyle','--'); print("mypng.png", "-dpng") you can customize code above case.
Comments
Post a Comment