From: Walter Roberson on
Jon wrote:
> Thanks for the help. So you can multiply an fread that results in a
> vector with a vector? I should probably specify the multiplication as
> element by element.

Yes. fread() returns a vector of values, and you can use that vector
however you want. On the other hand, fread() probably returns a column
vector whereas your cos() calculation is building a row vector, so take
appropriate steps.