Community Profile

photo

Ashraf Mekki


Last seen: 1 year ago Active since 2023

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Question


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...

1 year ago | 1 answer | 0

1

answer

Answered
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...

1 year ago | 0