What will be the output of of CD(1:8:8*16)=ciphertext
1 次查看(过去 30 天)
显示 更早的评论
What is the result of CD(1:8:8*16)=ciphertext ? Not able to interpret this.
1 个评论
Walter Roberson
2019-7-15
Imagine that CD is an array that is 8 x 16. Then that operation would be the same as storing values to the entire first row.
采纳的回答
Guillaume
2019-7-15
编辑:Guillaume
2019-7-16
It simply replaces elements 1,9,17, 25, ..., 121 of CD by the elements of ciphertext. Since that's 16 elements of CD that are replaced, if ciphertext does not have exactly 16 elements, the line is an error.
If CD is an 8x16 matrix, then as Walter commented, this replace the first row of CD. And in that case CD(1, :) = ciphertext would have been clearer.
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!