From: dafina on
I want to multilpy two large vectors with dimensions a(16384,1) and b(1,16384)
so v=a*b'

but the answer is :

??? Out of memory. Type HELP MEMORY for your options.
From: Rune Allnor on
On 11 apr, 19:17, "dafina " <d.xh...(a)gmail.com> wrote:
> I want to multilpy two large vectors with dimensions a(16384,1)  and b(1,16384)
> so v=a*b'
>
> but the answer is :
>
> ??? Out of memory. Type HELP MEMORY for your options.

Hardly surprising.

The outer product of two N x 1 column vectors produces
a matrix of size N x N. With the stated dimensions and
double-precision real numbers, the resulting matrix
requires 2 GBytes of RAM.

Rune
From: ImageAnalyst on
Did you possibly mean
v = a .* b'; % Note the dot: it's dot star instead of star
to do an element by element multiplication?