@Pratap Kumar Behera,@Bhaskar Mondal
this code from your papers"A secure image encryption scheme based on a novel 2D sine–cosine cross-chaotic (SC3) map"
please fix my error.
I have this problem in mode function :"Error using mod
Arguments must be real.
Pos=mod(xx,s);"
I need " Pos " to be value from 1 to size of image ( integer value , I need use it as index in confusion phase)
for simplicity say s equal 500 , so I need sequence from 1 to 500
%-------------------------code---------------------------
clc;
clear all;
img=img = imread('lena.bmp');
[row,col]=size(img);
s=row*col;
x=nan(1,s+1); %