Why is Time=t declared in this code snippet
1 view (last 30 days)
Show older comments
The is part of a larger m file, but it's completely independent- time isn't called anywhere else, so, what does the line "time=t" do in this code?
clear all;clc;
Ts1=0.01;n=1:3:1/Ts1;
t=n*Ts1;
Time=t;
xn1 = sin (2*pi*t);
subplot(3,1,1)
stem(n,xn1)
title('Sin(2pi*t) sampled at Ts=0.01 second intervals');
xlabel('T=n*0.01s');
ylabel('x(n)');
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Data Type Identification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!