[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Saving temporal variables
From: |
Søren Hauberg |
Subject: |
Re: Saving temporal variables |
Date: |
Wed, 12 Nov 2008 14:28:40 +0100 |
ons, 12 11 2008 kl. 14:18 +0100, skrev Oscar Bayona Candel:
> Hi all,
>
> I have created a simply program like this:
>
>
> for i=1:5
>
> A=ones(10,1)+randn(10,1);
>
> end
>
> I want to save each A(i) matrix created in a ascii document or a xls
>
> If I put
>
> save Data A
>
> It only saves the last A matrix how can I save these "temporal"
> matrices.
How about saving your matrices in a cell array, and then saving that?
C = cell (1, 5);
for i=1:5
A=ones(10,1)+randn(10,1);
C {i} = A;
end
save myfile.mat C
Søren