[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Skip one output value

From: James Sherman Jr.
Subject: Re: Skip one output value
Date: Wed, 10 Dec 2008 12:59:56 -0500

On Wed, Dec 10, 2008 at 12:49 PM, Ólafur Jens Sigurðsson <address@hidden> wrote:
On Tue, Dec 09, 2008 at 11:54:15PM +0100, Jakob Malm wrote:
> Hi,
> I am doing the following with a large (256^2 x 300, sometimes sparse)
> matrix, X:
> [ U, S, P ] = svd ( X, 0 );
> I am only interested in S and P. Can I skip the U somehow, so that it
> does not get assigned, something like
> [ ..., S, P ] = svd ( X, 0 );
> The reason for wanting to do this is because U becomes the same size as
> X, and takes up memory.

Hi Jakob

This is not possible I think, the best solution for you would be to
reassign U to a smaller value immediately after calculating svd, that
should free up your memory.


Instead of reassigning it, you could also simply call

clear U

after the svd call, but like Oli said, I don't know any way to get around it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]