Cell Array Analysis - sequences

2 ビュー (過去 30 日間)
Victoria 2023 年 2 月 9 日
回答済み: Timo Dietz 2023 年 2 月 22 日
I have a 1x59 cell array, each holding varying sequences of numbers from 1 to 28. I am trying to determine the percentages of movements between the transitions between one number in the sequence to another (i.e. 1 to 2, 2 to 1 etc.) which can later be used as weights for ploting a graph. My coding attempts have recommended that I omit the occasions that the value repeats itself (i.e. 1 to 1), however, that is a features of some of the examples. Is there a way to analyse the sequences within each cell array without having to omit self loops?
  3 件のコメント
Nikhil 2023 年 2 月 22 日
Hi Victoria,
As mentioned by Adam, the explanation is not clear. Provide more information on what is happening.


回答 (1 件)

Timo Dietz
Timo Dietz 2023 年 2 月 22 日
Doesn't the 'diff' function applied to the sequences deliver what you need?


Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by