How can i do this matrics please ?
古いコメントを表示
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 件のコメント
Walter Roberson
2017 年 11 月 10 日
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
2017 年 11 月 10 日
編集済み: ahmed kotb
2017 年 11 月 10 日
Walter Roberson
2017 年 11 月 10 日
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
2017 年 11 月 11 日
編集済み: ahmed kotb
2017 年 11 月 11 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Configure and View Diagnostics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!