How to prevent the fill command in MATLAB from creating boxes without “corners”

早过忘川 提交于 2019-12-05 19:49:27

The function fill appears to leave space for corner markers if they are not explicitly defined. Hence, calling fill with the marker property will solve your problem. However, since markers and linewidths seem to work on different scales, you will have to play around with the marker size to get smooth edges.

Example:

fill(X,Y,'r','FaceAlpha',0.5,'EdgeColor', 'k',...
    'LineWidth', 5,'EdgeAlpha',1 , 'marker', '.', 'markersize', 15)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!