The problem is that you don't seem to have a grasp on how the "." syntax actually works. (Sorry if that sounds harsh!)
For example, you have
I'm not sure what you intend there -- just stating that K is a vector? -- but that's just not how it works. You don't just "dot the vectors". Oversimplifying a bit -- you dot the operations not the variables.
Your code is just a bit tricky to fix, because you are also trying to use two vectors of different lengths, and I'm guessing you actually want all combinations of K and t to generate results. So, you actually have two-dimensional input. Is that right?