how to define a Three-dimensional symbol variable

b(i,j,k);
i = 5,k = 3
for i = 1:5
j = 2^i;
end
in other words,every row has different number of element for a centain k;
how to define these Three-dimensional symbol variable
thank you

1 件のコメント

ilona
ilona 2013 年 12 月 15 日
編集済み: ilona 2013 年 12 月 15 日
I didn't fully understand, you want to do one matrix? or several different matrices?

サインインしてコメントする。

 採用された回答

ilona
ilona 2013 年 12 月 15 日
編集済み: ilona 2013 年 12 月 15 日

0 投票

do you mean something like that?
%
c = ones(1,3)
for ii=1:length(c)
CellArray{ii}=ones(ii,2.^ii)
end
or something like that:
%
c = ones(1,3)
k = 3
CellArray = {a b c}
for ii=1:length(c)
CellArray{ii}=ones(ii,2.^ii,k)
end

1 件のコメント

hua
hua 2013 年 12 月 15 日
編集済み: hua 2013 年 12 月 15 日
b(i,j,k) it's size like this
1,1
1,1,1,1
1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
1,1
1,1,1,1
1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
1,1
1,1,1,1
1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
how to define these Three-dimensional symbol variable

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

質問済み:

hua
2013 年 12 月 15 日

編集済み:

2013 年 12 月 15 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by