photo

Fred


Syracuse University

Aktiv seit 2013

Followers: 0   Following: 0

Nachricht

Statistik

  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


probability of a run of k heads or more in N tosses of a fair coin N>>k
is there a code for this. One solution is given in http://www.drdobbs.com/architecture-and-design/20-heads-in-a-row-what-are-t...

mehr als 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


program behavior due to editor issues
In the attached code adding the two line commands near the top changes the behavior of the program from how it behaved without t...

fast 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


breaking an if loop
In the following script, why doesn't the break in line 24 get executed? clf xx = 1:.01:2; vec = 1:.01:2; for i=1:10...

fast 11 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


what is wrong with the following code. I should have sent the full script. Sorry. On my macine the vector 'x' ranges from 0 to 10.1
% trajetory 1 clf m = .1; %n = .2; % xx=1:10;y=[1 0 0 0 0 0 0 0 1 0];stem(xx,y) %hold on x(1...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


What is wrong with the following script?
x(1) = 0; i = 1; y(1) = 1.1; while x(i) <= 1.0 %x(i)= i; x(i+1) = x(i) + 0.1; y(i+1) = y(1)...

fast 11 Jahre vor | 2 Antworten | 0

2

Antworten