Why is Time=t declared in this code snippet

1 view (last 30 days)
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)');

Accepted Answer

Star Strider
Star Strider on 5 May 2014
It assigns the vector t to the variable Time.
  4 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Data Type Identification in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!