hello,, i have a problem like this.. i want to make grid (i give its color red) like this picture: http://www.flickr.com/photos/rye_ni/7063578237/
the grid divide the width and height of image.. so, it have 4 areas.. when i press a button, automatically the grid will be show.. how i can make like that.. thank you.. ^^

 채택된 답변

Walter Roberson
Walter Roberson 2012년 4월 10일

1 개 추천

xL = get(gca, 'XLim');
yL = get(gca, 'YLim');
xcen = mean(xL);
ycen = mean(yL);
gridlines = line([xcen xcen nan xL], [xL nan ycen ycen], 'Color', [1 0 0]);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 QSP, PKPD, and Systems Biology에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by