set where they begin and where they end brackets, that the sequence is long and therefore do not take into one line
Info
此问题已关闭。 请重新打开它进行编辑或回答。
Help creating model for study of probabilities
1 次查看(过去 30 天)
显示 更早的评论
For example I have the following sequence of n = 19: s = [1(1) 0(2) 0(3) 1(4) 0(5) 1(6) 1(7) 1(8) 0(9) 0(10) 1(11) 1(12 ) 0(13) 0(14) 1(15) 1(16)
1(17) 0(18) 1(19)]
The numbers in parentheses indicate the order of the sequence I two matrices of the form: if true % code s1 = [s 0]; s2 = [s 1]; end and I would be as follows with two sequences of n = 20;
s1 = [1(1) 0(2) 0(3) 1(4) 0(5) 1(6) 1(7) 1(8) 0(9) 0(10) 1(11) 1(12 ) 0(13) 0(14) 1(15) 1(16)
1(17) 0(18) 1(19) 0(20)]
s2 = [1(1) 0(2) 0(3) 1(4) 0(5) 1(6) 1(7) 1(8) 0(9) 0(10) 1(11) 1(12 ) 0(13) 0(14) 1(15)
1(16) 1(17) 0(18) 1(19) 1(20)]
As you might create the following matrix:
[0(2) 0(3) 1(4) 0(5) 1(6) 1(7) 1(8) 0(9) 0(10) 1(11) 1(12) 0(13) 0(14) 1(15) 1(16) 1(17)
0(18) 1(19) 0(20)]
[0(2) 0(3) 1(4) 0(5) 1(6) 1(7) 1(8) 0(9) 0(10) 1(11) 1(12) 0(13) 0(14) 1(15) 1(16) 1(17)
0(18) 1(19) 1(20)]
[0(3) 1(4) 0(5) 1(6) 1(7) 1(8) 0(9) 0(10) 1(11) 1(12) 0(13) 0(14) 1(15) 1(16) 1(17) 0(18) 1(19)
0(20)]
[0(3) 1(4) 0(5) 1(6) 1(7) 1(8) 0(9) 0(10) 1(11) 1(12) 0(13) 0(14) 1(15) 1(16) 1(17) 0(18) 1(19)
1(20)]
[1(4) 0(5) 1(6) 1(7) 1(8) 0(9) 0(10) 1(11) 1(12) 0(13) 0(14) 1(15) 1(16) 1(17) 0(18) 1(19) 0(20)]
[1(4) 0(5) 1(6) 1(7) 1(8) 0(9) 0(10) 1(11) 1(12) 0(13) 0(14) 1(15) 1(16) 1(17) 0(18) 1(19) 1(20)]
To
[1 (15) 1 (16) 1 (17) 0 (18) 1 (19) 1 (20)]
[1 (15) 1 (16) 1 (17) 0 (18) 1 (19) 1 (20)]
In this case use a sequence of n = 19 inical After I think two sequences s1 and s2 of n = 20 And then calculate subsequences from m = 20 to m = 6. I wish I could change "n" and "m" to generalize the model thank you very much
1 个评论
回答(0 个)
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!