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!

