Question

How to shift rows of a matrix with a specific number

Hi I want to shift(row) pixels of an image with specific number of rotation e.g 10 or 45 I1=imread('lina512.bmp'); I2=imresiz...

10 months ago | 0 answers | 0

Question

How to permute rows with specific number of permutation

Hi I want to permute the image first column wise then row wise with specific values. The code I have written gives correct answe...

10 months ago | 1 answer | 0

Question

How to pad zeros in an image

Hi If i have image of size 64*64 (one layer). I want to insert another column .The resulting image then would become 64*65. re...

11 months ago | 1 answer | 0

Question

how to extract one variable elements from a function

Hi i have a function that takes 3 inputs and returns the corresponding values. I want to call a function and uses only E . How d...

11 months ago | 1 answer | 0

Question

shifting of matrix elements

hi,Can i divide the matrix into layers ,outer layer(boundary elements)then second layer and so on. for example original matrix...

11 months ago | 1 answer | 0

Question

How to make Latin look up table

I want to use a look up table for example if L1 is latin table and B is another table I want b1=(k*B(1,1))*B(1,2))*(B(1,3)). b...

1 year ago | 1 answer | 0

Question

Latin Square of our own symbols

Hi I want to construct latin square of my own numbers e.g A =[2 0 9 8] . How can I construct in matlab?

1 year ago | 1 answer | 0

Question

How to give Gray color histogram gray shade instead of blue

Hi, I want the gray shade histogram for grayscale image. here is my code. Can any one help me % for red color figure; imhist(...

1 year ago | 0 answers | 0

Question

How to modify narginchk in DES matlab code

I have downloaded DES code from file exchange and try to modify it a bit but it gives error which I cannot figure out whats wron...

1 year ago | 1 answer | 0

Question

How to perform right circular shift

Hi. I have written a code to perform circular shift but it does not give me all X28 and Y28 keys . It returns only one X28 and Y...

1 year ago | 1 answer | 0

Question

matlab code for computing Des inverse Initial permutation

How to find inverse IP (nitial permutation ) of DES in Matlab. Is any code available.

1 year ago | 0 answers | 0

Question

How to take elements of one matrix as power of the elements of second

Hi If I have a matrix A=[2 3; 6 7], B=[4 5; 9 3] C= [4^2 5 ^3 ;9^6 3^7] that is [b(1,1)^a(1,1) b(1,2)^a(1,2); b(2,1)^a(2,...

1 year ago | 1 answer | 0

Question

can any one explain this line of the code.

Data=[-1 -0.5 1 2; -4 -3 2 3]; m=2.5; % slope is kept constant c=-10:0.1:10; % different values for intercept c to plot the...

1 year ago | 1 answer | 0

Question

How to taker power of a permutaion matrix

Hi ,I want to find the power of a permutation matrix, i.e A=(1 2 3;3 2 1) is a permutation matrix and I want to find (1 2 3; 3...

1 year ago | 1 answer | 0

Question

How to select specific no of terms from a sequence

Hi, I have around 1700 values and i want matlab to get input and then select 256 values after the given input. I dont know how t...

1 year ago | 0 answers | 0

Question

How tatement to use if statement to eliminate unwanted value

Hi,. I have set of values like .001,0.002,...inf i want to find the max value from these excluding inf X=U/10000; i=[X] ...

1 year ago | 1 answer | 0

Question

HOW TO get answer in 6 decimal places .

Hi. I have for example U=0,1,2,3,4,5,6,7 i want to divide each no by 10000. I need the answer in decimal and then find the maxi...

1 year ago | 1 answer | 0

Question

Add key with the pixels

How to add 1 4 key with an image size 256*256 in matlab. e.g ii=i(:,:,3); rng(78932); %agree upon a seed rand_key = uint8(...

1 year ago | 0 answers | 0

Question

how to add a matrix with the pixel of an image

Hi I want to add a matrix with the pixels of an image.image size is 512 512 and matrix size is 2*2. I=imread('lina512.bmp'); k...

1 year ago | 0 answers | 0

Question

how to do left and right bit rotation

Hi. I am trying to convert a matrix into 8 bit binary and then want to apply different bit rotations in different rows.e.g for r...

1 year ago | 1 answer | 0

Question

How to encode alphabets using tables

Hi I want to encode the word "CONGRATULATIONS" using upper case letters.For this I have the table A 0 B 1 C 2 ...

1 year ago | 1 answer | 0

Question

Gray2bin conversion

Hi I to gant to convert binary to gray. K=[1 2 0 9]; K_1=dec2bin(K); K_2=bin2gray(K_1); The results of K_1 is '0001' ...

1 year ago | 1 answer | 0

Question

How can I convert (x,y) points(double) into cell

Hi I have set of points which I want to store as cells . 0 8 0 59 4 20 4 47 5 23 5 44 9 20 Any idea how to do this. Par...

1 year ago | 2 answers | 0

Question

elliptic points as cell

I want to convert elliptic curve points as cell a=0:66; left_side = mod(a.^2,67); right_side = mod(a.^3+1*a-3,67); C={}; ...

1 year ago | 0 answers | 0

Question

How to rearrange pixels into a new matrix form

I have 64*64 rgb image. I want to reaarange its pixels in matrix form.I.e lowest intensity value comes to the first place (1,1) ...

1 year ago | 1 answer | 0

Question

unique elliptic curve points

I have few points (0,8),(0,64),(28,1)(28,66),(9,47)(9,20),(54,20)(54,47),(21,10),(21,51) Is there any matlab command which chec...

1 year ago | 1 answer | 0

Question

converting points on cell array

Hi I want to display points as cell. but it gives error at t for i=0:n-1 t=(find({Y2}=={(X(i+1))})); if (~isempty(t)...

1 year ago | 0 answers | 0

Question

Image encryption and UACI

I ave encrypted an image with high entropy but UACI id 27.6. I have used randi(special seed) command to increase it but it reach...

1 year ago | 0 answers | 0

Question

Aarnolds cat map iterations

I have gone through the code given by image analysthttps://www.mathworks.com/matlabcentral/answers/327058-how-can-i-randomize-an...

1 year ago | 0 answers | 0

Question

storing values using for loop in elliptic curves

Hi I am using elliptic curves point multiplication. I have used for loop but it does not store values properly. clear all G=[7...

1 year ago | 1 answer | 0