I can plot 1 (cosecant) every second over 2 seconds and it looks fine (the top plot). But when I plot the frequency of 100 csc (cosecant) signals I would expect / want 100 cosecant signals that are just repeating the same signal much like plotting y=.8*sin(100*t) would do but that doesn't occur what am I doing wrong? See code and plot below.
clear, clc
fs=8000
len_of_sig=2; %length of signal in seconds
t=linspace(0,2*pi*len_of_sig,fs*len_of_sig);
y_a=0.01*csc(1*t);
y_a(y_a >=1) = 1; %used to limit amplitude
y_a(y_a <=1) = 1;
y_b=0.01*csc(100*t);
y_b(y_b >=1) = 1;
y_b(y_b <=1) = 1;
t2=t./(2*pi); %converts time in radians to seconds
subplot(2,1,1);plot(t2(1:end),y_a(1:end));
subplot(2,1,2);plot(t2(1:end),y_b(1:end));
Ps: I'm using octave 4.0 which is like matlab
