sir ,

i have created a signal.

%%%%%%%%%%%%%%%%%%%%

clc;

clear all;

ff=100000:50000:400000;

x = length(ff);

Ytot=0.0;

for j=1:1

R=4E+6; % Synchronized Rate (Max)

dt=1/R; % Sampling Time for output

f=ff(j);

t=0;

y=0;

Y=0;

Y1=0;

N=5; % Number of cycles

L=N/(dt*f); % Length of signal

for i=1:L

Y1(i)=4*(1-cos(t*2*pi*f/N))* sin(t*2*pi*f);

t=t+dt;

end

for i=1:L

Y(i)=0.0;

end

Y=[Y Y1 ];

if j==1

Ytot=[Y];

else

Ytot=[Ytot Y];

end

end

t=([1:1:length(Ytot)])*dt;

subplot(2,1,1)

plot(t,Ytot);

%%%%%%%%%%%%

i want to insert certain constant values say for t=(.6-.8)^10-4

i want to insert values based on knowlege of only x-axis values

i dont want to use anycode that uses index.

my code should depend entirely on x values