R2014b 以降では、グリッド線の透過性を設定するプロパティが追加されています。透過性を 1 に設定することで、同様の結果を得ることができます。
figure
grid on
set(gca,'GridLineStyle',':',... % グリッドの線種を点線に設定
'GridColor','k',... % グリッド線の色を黒に設定
'GridAlpha',1) % 透過性を 1 (なし)に設定
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!