"Erik" wrote in message <email@example.com>... > I have this: > t= [0:100]; > L = 100; > k = [.1 .3 .7]; > C = 25; > > i want to multiply > -k .* t > > but i get an error message saying matrix dimensions must agree. > I thought the . before the * would get rid of that error but it doesn't. what is going on???
Well, k has 3 elements and t has 101.
How do you expect the results to look like by multiplying 3 things by 101 things?