Index error in code

1 次查看(过去 30 天)
Abdullah Qayyum
Abdullah Qayyum 2020-4-18
I am trying to execute this code but it gives me an error Index exceeds array bounds.
I= [234, 112, 22, 56; 78, 81, 119, 121; 98 193 250 211; 33 135 199 201];
s=[110 45 32; 95 150 67; 89 76 55];
s2= s(I+1)
  2 个评论
KSSV
KSSV 2020-4-18
What you are doing is wrong. You are trying to access more number of elements from s. What exactly you want to do?
Abdullah Qayyum
Abdullah Qayyum 2020-4-19
I am applying sbox on an encrypted image.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by