![]() |
|
![]() |
![]() |
|
|
|||||||
|
![]() |
|
|
LinkBack | أدوات الموضوع | تقييم الموضوع |
|
|||
|
طلب من خبراء الماتلاب
السلام عليكم
يا شباب انا كتير محتاجكم خصوصا اللي عندهم خبره في الماتلاب انا طالب في هندسة الكهربا - حاسوب مطلوب مني واجب على الماتلاب وبدي مساعدتكم هي الواجب write an m-function to generate random vector x of 500 random number uniformly distributed in (0,1) and to perform the following a) plot the histogram of x b) display the mean and variance of x c) modify x to become Bernoulli R.V.y with pmf : p[y=0]=q , p[y=1]=p for arbitrary p.q plot the histogram of y , display y( prime) the mean of y , and the variance too d) modify x to become binomial R.V.z for arbitrary n,p . plot the histogram of z , display z( prime) the mean of z , and the variance too e) modify x to become binomial R.V.w for arbitrary λ . plot the histogram of w, display w( prime) the mean of w, and the variance too يا مهندسين انا كتير محتاجلها فأي واحد عنده فكره عن الموضوع يا ريت يراسلني على *****ي انا ما بعرف اشي عن هاد البرنامج بس الحل ضروري medevil_w************* |
|
|||
|
السلام عليكم
سؤالك متعلق بالاحصاء وليس فكرة عن توزيع Bernoulli أو النوع الاخر لكن قرأت في Matlab help ووجدت بعض الايعازات أتمنى أن تستفيد منها clear,clc a = rand(500); % generating matrix (500x500) with random numbers between 0 and 1. X = a(:,1); % take just the first column from the matrix so that we have 500 random numbers. hist(X,500) P = #; % write the value of P N = #; % write the value of N Z = BINOPDF(X,N,P); % generating binomial R.V. (please choose appropriate P and N) [M,V] = binostat(N,P); % this function will give you the mean and the variance figure(2),hist(Z) P = 1; % P here should be 1 !! N = #; % write the value of N Y = BINOPDF(X,N,P); % generating Bernoulli R.V. (special case from binomial R.V. where P=1) [M,V] = binostat(N,P); % this function will give you the mean and the variance figure(3),hist(Y) % to plot the histogram هذا ليس برنامج ولكن أيعازات يمكنك أن تستفاد منها في بناء برنامج |
![]() |
| مواقع النشر (المفضلة) |
| أدوات الموضوع | |
| تقييم هذا الموضوع | |
|
|