필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Help creating model for study of probabilities

조회 수: 2 (최근 30일)
FRANCISCO
FRANCISCO 2013년 10월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
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
FRANCISCO
FRANCISCO 2013년 10월 3일
set where they begin and where they end brackets, that the sequence is long and therefore do not take into one line

답변 (0개)

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by