what does it mean: for i=1:length(t) h(i) = hat(t(i)); end
how do I read it? I have difficulties with the interpretation but I know is a hat function.
Explanation:-
%Loop through from
first index to end of the vector t
for i=1:length(t)
%Assign vector h's corresponding index value as
the hat function return value
%Pass t's corresponding index value as argument
to hat function
h(i) = hat(t(i));
%End of for loop
end
-----------------------------------------------------
Note:-
I assume you implemented your hat function separately.
Get Answers For Free
Most questions answered within 1 hours.