n2=2:100;
t=3;
while t<=100
{
g3(t)=(1/2)*(0.63)*(0.8.^(n2));
t=t+1;
}
g3(1)=0;
g3(2)=0;
what is wrong with the code above? it tells me that line:
g3(t)=(1/2)*(0.63)*(0.8.^(n2));
The expression to the left of the equals sign is not a valid target for an assignment.