Product array

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Product array

LucaLuca
hi,
see this example:

a=(1,:)= 2 3 4

b=(1,:)=5 6 7

i want this:

z=a*b =2*5 3*6 4*7=10 18 28 ==> the result is an array of 3 element






--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Product array

Santiago Higuera-2
a=[2 3 4]

b=[5 6 7]

a.*b = (10 18 28)




El 03/09/18 a las 19:25, LucaLuca escribió:

> hi,
> see this example:
>
> a=(1,:)= 2 3 4
>
> b=(1,:)=5 6 7
>
> i want this:
>
> z=a*b =2*5 3*6 4*7=10 18 28 ==> the result is an array of 3 element
>
>
>
>
>
>
> --
> Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
>
>
>