photo

Sofy


Last seen: oltre 2 anni fa Attivo dal 2017

Followers: 0   Following: 0

Statistica

  • Thankful Level 2
  • Thankful Level 1

Visualizza badge

Feeds

Visto da

Domanda


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

oltre 2 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 5 anni fa | 1 risposta | 0

1

risposta

1

risposta

Domanda


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

quasi 7 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 7 anni fa | 2 risposte | 0

2

risposte