フィルターのクリア

make grid

2 ビュー (過去 30 日間)
Rahma Yeni
Rahma Yeni 2012 年 4 月 10 日
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 日
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]);
  1 件のコメント
Rahma Yeni
Rahma Yeni 2012 年 4 月 12 日
Thank you Walter.. ^^

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImport, Export, and Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by