Feeds
提问
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.
function [estimatepi,c] = estimatepi9(tol) x=rand; y=rand; c=0; hits=rand; n= 0; hit=[]; error=[]; estimatepi=[]; to...
6 years 前 | 2 个回答 | 0
