Answer:
x = 29:73;
x_even = x(2:2:end);
Explanation:
In order to create a vector in Matlab you can use colon notation:
x = j:k
where <em>j</em> is 29 and <em>k</em> is 73 in your case:
x = 29:73
Then you can extract the even numbers by extracting the numbers with even index (2,4,6,etc.) of your vector:
x_even = x(2:2:end);
In the line of code above, we define <em>x_even</em> as all the elements of x with even index from index 2 till the end index of your vector, and an increment of 2 in the index: 2,4,6,etc.
If you want the odd numbers, just use the odd indices of your vector:
x_odd = x(1:2:end);
where <em>x_odd</em> contains all the elements of <em>x</em> with odd index from index 1 till the end index, and an increment of 2: 1,3,5,etc.
Mark is gonna be the answer for question 1
Answer:
Given:
Passwords are selected from 4 characters.
Character combinations are 26 lower case alphabetic characters.
Passwords attempts by adversary is at rate of 1 second.
To find:
Expected time to discover the correct password
Explanation:
Solution:
4 character combinations of 26 alphabetic characters at the rate of one attempt at every 1 second = 26 * 4 = 104
So 104 seconds is the time to discover the correct password. However this is the worst case scenario when adversary has to go through every possible combination. An average time or expected time to discover the correct password is:
13 * 4 = 52
You can also write it as 104 / 2 = 52 to discover the correct password. This is when at least half of the password attempts seem to be correct.
English:
Microsoft Word is used to create text-based documentations and PowerPoint is used to create presentations. Some similarities between them is that they can both be used to display graphs, images, and text. You can also customize your text in both of them
Spanish:
Microsoft Word se usa para crear documentaciones basadas en texto y PowerPoint se usa para crear presentaciones. Algunas similitudes entre ellos es que ambos se pueden usar para mostrar gráficos, imágenes y texto. También puede personalizar su texto en ambos
I hope this helps! Sorry if google translate didnt translate it right!
¡Espero que esto ayude! Lo siento si el traductor de Google no tradujo esto correctamente.