需要修改的代码:
h=animatedline(x(1),x(2));
darkgreen = [0 2/3 0];
set(h, ‘linestyle’,‘none’,‘markersize’, 1, ‘color’, darkgreen,‘marker’,‘.’);
在循环末尾修改语句为
end
addpoints(h,x(1),x(2));
cnt = cnt+1;
drawnow
https://ww2.mathworks.cn/help/releases/R2018b/matlab/graphics_transition/how-do-i-replace-the-erasemode-property.html
matlab EraseMode 属性不再受支持,而且在以后的版本中会出错。
于 2022-05-07 17:46:54 首次发布