Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Could anyone help me how to get different cell size.

2 ビュー (過去 30 日間)
jaah navi
jaah navi 2019 年 9 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
A= [1 2 3 4 5 6;
1 3 2 4 5 6;
1 4 2 3 5 6;
1 5 2 3 4 6;
3 5 1 2 4 6;
1 6 2 3 4 5;
3 6 1 2 4 5;
4 6 1 2 3 5]
NN = num2cell(num2cell(A),2)
when i run the command with respect to the above matrix it gives the fllowing result
NN = {1x6 cell}
{1x6 cell}
{1x6 cell}
{1x6 cell}
{1x6 cell}
{1x6 cell}
{1x6 cell}
{1x6 cell}
could anyone help me how to get the result in the following manner
NN = {1x1 cell}
{1x2 cell}
{1x3 cell}
{1x4 cell}
{1x5 cell}
{1x6 cell}
{1x2 cell}
{1x3cell}
  6 件のコメント
Geoff Hayes
Geoff Hayes 2019 年 9 月 20 日
編集済み: Geoff Hayes 2019 年 9 月 20 日
jaah - so some elements of NN will be a subset of the data from A? For example, the first element should be a 1x1 cell...does that mean it will be just the value of 1? Or should it be some other value from that first row?
jaah navi
jaah navi 2019 年 9 月 22 日
if it is {1x1cell} then the numbers should be arranged in the follwoing manner {1 2 3 4 5 6},{1x2 cell} then the number should be arranged in two sets.{1 3 }{2 4 5 6}.

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by