Community Profile

photo

Ashraf Mekki


Last seen: environ un an il y a Actif depuis 2023

Followers: 0   Following: 0

Statistiques

  • First Answer

Afficher les badges

Feeds

Afficher par

A répondu
how to plot pi estimation using two for loops

environ un an il y a | 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...

environ un an il y a | 1 réponse | 0

1

réponse

A répondu
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...

environ un an il y a | 0