How do ones and zeroes work in plotting a graph?
显示 更早的评论
clc;
close all;
clear all;
t=-2:1:2;
y=[zeros(1,2),ones(1,1),zeros(1,2)]
stem(t,y);
This code is to plot an impulse graph, I don't understand how "zeroes", "ones" work here , I know they are used to create a matrix with all elements as zeroes and ones respectively.
thanks!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Christmas / Winter 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

