increase gridline distances in meshplot

Hello, I've created a simple meshplot using mesh(A) with A being a 350x390 rectangular matrix. This matrix contains mostly zeros with values at some indices. The grid lines look like they are one index in distance apart from each other. How can I make this more coarse? I'd like to have grid lines for every 10 indices. Thanks in advance!

 採用された回答

KSSV
KSSV 2016 年 10 月 27 日

0 投票

mesh(A(1:10:end,1:10:end))

1 件のコメント

John Yi
John Yi 2016 年 10 月 27 日
Perfect, thank you!

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

その他の回答 (0 件)

カテゴリ

質問済み:

2016 年 10 月 26 日

コメント済み:

2016 年 10 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by