problem in drawing my small program
Mostra commenti meno recenti
After greetings and respect
please,anyone tell me about my problem here
when I want to plot using plot command,nothing appear in my
graph,why??
Thanks in advance
clear all;
randn('state',0)
M=input('Enter the number of realization:');
counter=0;
X=randn(M,1);
for k=1:M
if X(k)>2
counter=counter+1;
end
end
proestimated = counter/M;
disp('estimated probability:')
display(proestimated)
plot([-4:1:4],proestimated);
Risposta accettata
Più risposte (1)
reem
il 16 Apr 2011
0 voti
Categorie
Scopri di più su Line Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!