MATLAB: Matlab

multiple files

Hi i have a question how to multiple this two
a=[10 11 15 18 20 40 50 66 88]
b=[10^1,10^2,10^3,10^4]
so that the answer is for example 10, 100 1000 10000 how can i write a code for the above thanks

Best Answer

I suspect you want bsxfun() . Try
bsxfun(@times, a.', b)