Feeds
提问
how to plot pi estimation using two for loops
N = 10000; count=0; for i=1:N x=rand(); y=rand(); if x^2+y^2<=1 count=count+1; else %for j=1...
3 years 前 | 1 个回答 | 0
1
个回答已回答
I am new to Maltlab, i wanted to use a while loop to calculate pi using Montecarlo method. the code below is not giving me any answer can anyone help please.
%hi all i'm new to matlab i wanted to estimate PI valuve using two loops of for (and plot the result).. can you help me! N = 10...
I am new to Maltlab, i wanted to use a while loop to calculate pi using Montecarlo method. the code below is not giving me any answer can anyone help please.
%hi all i'm new to matlab i wanted to estimate PI valuve using two loops of for (and plot the result).. can you help me! N = 10...
3 years 前 | 0
