Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Help creating model for study of probabilities

2 vues (au cours des 30 derniers jours)
FRANCISCO
FRANCISCO le 3 Oct 2013
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 commentaire
FRANCISCO
FRANCISCO le 3 Oct 2013
set where they begin and where they end brackets, that the sequence is long and therefore do not take into one line

Réponses (0)

Cette question est clôturée.

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by