photo

Sofy


Last seen: 2 years ago Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Eigenvalues by power method
hello everyone, is there's anyone could help me to solve this problem using matlab code <</matlabcentral/answers/uploaded_fil...

2 years ago | 2 answers | 0

2

answers

Question


this code is for calculating the probability of attack success represent for the equation A, i need to change it to calculate the probability of attack success for the equation B:where q =[0.1 ,0.2 , 0.3, 0.4 , 0.5] and p= 1-q and Z= 6
the code for the Eq.A in the follwing: function y=AttackerSuccessProbability(q,z) p=1-q; lambda=z.*q./p; sum=1; for k=0:m...

5 years ago | 1 answer | 0

1

answer

Question


how to get the result of this code in a table like that table attached ' with q=[0.1, 0.2, 0.3, 0.4, 0.5] and z =5
<</matlabcentral/answers/uploaded_files/99445/Unnamed%20QQ%20Screenshot20171225152604.jpg>> function [y]=Attack(q,z) ...

7 years ago | 0 answers | 0

0

answers

Question


hello i am asking about how to solve this error? ..Note that input : q=[0.1,0.2,0.3,0.4,0.5] and z=[0,1,2,3,4]
function y=c(q,z) p=1-q; lambda=z.*q./p; sum=1; for k=0:max(z) poisson=exp(-lambda); for i=1:k ...

7 years ago | 1 answer | 0

1

answer

Question


how To change this C++ code to matlab code ?
#include <math.h> double AttackerSuccessProbability(double q, int z) { double p = 1.0 - q; double lambda = z * (q / ...

7 years ago | 2 answers | 0

2

answers