matlab 怎样让stem画出的图像只显示那个点
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/06/10 19:07:34
matlab 怎样让stem画出的图像只显示那个点
如题,也就是只显示那个点,不要那根竖直的线,
如题,也就是只显示那个点,不要那根竖直的线,
t = linspace(-2*pi,2*pi,10);
figure(1)
stem(t,cos(t));
grid on
figure(2)
stem(t,cos(t),'LineStyle','none');
grid on
figure(1)
stem(t,cos(t));
grid on
figure(2)
stem(t,cos(t),'LineStyle','none');
grid on