Ugly Lines in Plot
显示 更早的评论
I am plotting joint angles while walking (multiple steps). I have two vectors, joint angle and percent of step. When I plot:
plot(percent,angle)
MATLAB plots my data but I have ugly horizontal lines across my plot connecting adjacent steps.
In the past I would separate steps with NaN's... but there has to be a easier way... What is the simplest way to get rid of these lines? Thanks ~Dan
1 个评论
Walter Roberson
2012-7-13
Separating them with NaN is the easiest way.
采纳的回答
更多回答(1 个)
Amarpal
2012-7-12
0 个投票
Perhaps you are talking about the gridlines? You can use the following: h = plot(percent,angle); set(h,'edgecolor','none')
Hope this is what you were looking for?
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
