vectorization - Operate on all rows of a matrix without loop, octave -


suppose have matrix , want obtain following:

for i=1:m   a(i,:) = depends on i; endfor 

is there way obtain without loop?

added: ok, i've understood have more specific.
have 2 matrices b , c (all matrices considering have m rows).
want record in i-th row of a product of polynomials written in i-th rows of b , c (so using loop call conv function). ideas?

i don't think it's possible without loop conv accepts vector inputs, might wrong. can't see way of using either bsxfun or arrayfun in conjunction conv , matrix inputs. might wrong though... stand corrected.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -