set where they begin and where they end brackets, that the sequence is long and therefore do not take into one line
Info
This question is closed. Reopen it to edit or answer.
Help creating model for study of probabilities
1 view (last 30 days)
Show older comments
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 Comment
Answers (0)
This question is closed.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!