フィルターのクリア

How to perform Arthemtic Codding on Nested Cell Aray

2 ビュー (過去 30 日間)
GEEVARGHESE TITUS
GEEVARGHESE TITUS 2017 年 2 月 21 日
コメント済み: GEEVARGHESE TITUS 2017 年 2 月 25 日
I am having the following cell C, with the associated data
2x1 cell
[29;32]
[0;72]
2x1 cell
[]
[29;31;33;64]
6x1 cell
[]
[0;11;14;15;20;22;45;53]
[0;13;16;17;34;47]
[0;18;21;33]
[0;10;15;16;17]
[0;10;14;24;31]
18x1 cell
[]
[]
[]
[]
[]
11x1 int8
13x1 int8
[0;10;11;13;15;16;18;21;22;33]
16x1 int8
[0;10;11;13;15;20;23;24;26]
[0;10;11;13;14;16;18;25]
0
[0;14;15]
[0;11;13;14;16;20;21;23]
[0;11;13;15;21]
[0;10;11;12;14;17;19;20;23]
[0;10;11;12;13;15;16;18;20]
[0;10;11;12;14;15;19;20;25]
How can we apply Arithmetic coding of the above cell C. I tried to do Ac on each cell, but it is ending in error. How can we retrieve the unique symbols from all the cell and its count, so we can run the AC function, without effecting the cell structure. Also how can be do the decoding and retrieve the cell back?

採用された回答

Walter Roberson
Walter Roberson 2017 年 2 月 21 日
inner_layer = @(inner) AC( length(inner), unique(inner), inner );
middle_layer = @(middle) cellfun(inner_layer), middle, 'uniform', 0);
result = cellfun(middle_layer, C, 'uniform', 0);
  21 件のコメント
Walter Roberson
Walter Roberson 2017 年 2 月 25 日
The question has changed enough that I recommend creating a new Question on the topic with more detail on what you are looking for in this phase
GEEVARGHESE TITUS
GEEVARGHESE TITUS 2017 年 2 月 25 日
Ok I will post it as a new question.. Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumber Theory についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by