Date: Feb 12, 2013 11:33 AM
Subject: Re: Matrix Dimensions must agree.
"Erik" wrote in message <firstname.lastname@example.org>...
> 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?
Do you want an array of 3X101 or 101X3 perhaps?
Maybe something like: