Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: matrix
Date: Wed, 4 Nov 2009 14:13:02 +0000 (UTC)
Organization: ErasmusMC
Lines: 31
Message-ID: <hcs25e$n28$1@fred.mathworks.com>
References: <hcs07k$kd7$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257343982 23624 172.30.248.35 (4 Nov 2009 14:13:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 14:13:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1095751
Xref: news.mathworks.com comp.soft-sys.matlab:582374


Hi!

I think your matrix has a different size for each (i,j,k), so you can use a cell array:
B{i,j,k} = A

(note the {} in stead of () ).

Sebastiaan

"Handan Yaslan" <hyaslan.nospam@mathworks.com> wrote in message <hcs07k$kd7$1@fred.mathworks.com>...
> Hi 
> I obtained the matrix A using a lot of calcultation  in the for,
> for i=1:N
>     for j=1:N
>         for k=1:N
>           (I did a lot of calcultation ,so I obtained the matrix A )
>                 A
>       end
>    end
> end
> 
> Main problem;
> for every each step I want to see A matrix. For example 
> i=1 j=1,k=1  what is A?
> i=1,j=1,k=2, A=?
> i=N j=N k=N A=?
> 
> I tried B(i,j,k)=A,but matlab gives error....
> How can I seperate A matrix for each step?
> 
> thanks.....