photo

manjuthaa


Attivo dal 2011

Followers: 0   Following: 0

Messaggio

clc;
clear all;
close all;
w=18;
p=103;
n=2;
q21=0.07;
q20=0.91;
q22=0.0071;
fid=fopen('proj12.dat','w');
for ks=65:10:100
ks
pe=0;
for k=0:1:w-1
c=((factorial(w-k))/factorial(w))*(factorial(w-1)/factorial(w-k-1));
for y=0:1:w-2
z=((factorial(w-y))/factorial(w))*(factorial(w-2)/factorial(w-y-2))
d=q20+(c*(q21))+(z*(q22));
e=(d^((ks)-1));
for j=0:1:w
pe1=(factorial(w)/((factorial(w-j))*factorial(j)));
x=pe1*e;
pe2=((-1)^j)*x;
pe=pe+pe2;
end
end

end
pez=pe/2

fprintf(fid,'%2d %5.3e \n',ks,pez);

end

fclose(fid);

while plottig the graph for above program i had a warning that negative data ignored....how to clear it?

Statistica

MATLAB Answers

1 Domanda
0 Risposte

RANK
204.558
of 302.089

REPUTAZIONE
0

CONTRIBUTI
1 Domanda
0 Risposte

ACCETTAZIONE DELLE RISPOSTE
0.0%

VOTI RICEVUTI
0

RANK
 of 21.539

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK

of 178.760

CONTRIBUTI
0 Problemi
0 Soluzioni

PUNTEGGIO
0

NUMERO DI BADGE
0

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
0 Punti principali

NUMERO MEDIO DI LIKE

Feeds

Visto da

Domanda


how to clear the warning negative data ignored?
clc; clear all; close all; w=18; p=103; n=2; q21=0.07; q20=0.91; q22=0.0071; fid=fopen('proj12.dat','w'); for ks=6...

oltre 15 anni fa | 2 risposte | 0

2

risposte