How can i do this matrics please ?
Afficher commentaires plus anciens
Consider the following operation:
R=A*B*C*D
R1=A*B
R2=R1*C
R=R2*D
Where A, B, C, and D are real 4x4 matrices and (*) is an element by element multiplication operation, i.e. Rij=Aij*Bij*Cij*Dij
The elements of A,B,C, and D are drawn randomly and are represented as 16-bit unsigned integers.
Plot the QSNR vs output word length graph for R1, R2, and R on the same axes for x-axis range from 16-32 bits
The gold standard for measuring QSNR is the noiseless result of multiplication.
After each multiplication, return the result to the 16-bit scale before doing the next multiplication
(Hint: It might help to write a fixed point multiplication function first)
_____________________________________________________
Repeat the above with the following difference:
The scale to which the output is fit does not simply truncate all the difference bits from LSB.
Instead for each single set of 16 results constituting a matrix, the algorithm will examine for the result with the left-most active bit (‘1’). It will then drop all the insignificant bits from the right, and balance the remaining bits from the LSB.
Plot R1,R2, R again.
_____________________________________________________
Write a short conclusion comparing the two methods of matrix multiplication, and give reasons for the difference in performance
I don't know how can started..any one can help me please :)
4 commentaires
Walter Roberson
le 10 Nov 2017
Well, see the hint:
(Hint: It might help to write a fixed point multiplication function first)
"The elements of A,B,C, and D are drawn randomly and are represented as 16-bit unsigned integers."
The problem there that it does not say what range they are drawn from.
This is a question about fixed point representation and how well you can preserve accuracy. You need to devise a fixed point representation and write a fixed point multiplication function.
ahmed kotb
le 10 Nov 2017
Modifié(e) : ahmed kotb
le 10 Nov 2017
Walter Roberson
le 10 Nov 2017
You define it the same way as you define any other function: you define it to accept inputs.
function result = fixed_point_multiply(First, Second)
...
ahmed kotb
le 11 Nov 2017
Modifié(e) : ahmed kotb
le 11 Nov 2017
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!