Community Profile

photo

Ashraf Mekki


Last seen: ongeveer een jaar ago Active since 2023

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
how to plot pi estimation using two for loops

ongeveer een jaar ago | 0

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

ongeveer een jaar 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...

ongeveer een jaar ago | 0