Neha W


自 2016 起处于活动状态

Followers: 0   Following: 0

统计学

  • Thankful Level 3

查看徽章

Feeds

排序方式:

提问


Permuting elements of matrix with a polynomial (3x^3 + 6x^2 + 7x) mod 9
A = [1 2 3; 4 5 6; 7 8 9] %original position of matrix elements [r c] = size(A); N = 9; B = reshape(A,1,r*c); % B = [1 ...

7 years 前 | 1 个回答 | 0

1

个回答

提问


For every iteration, I want to plot two parameters NPCR and UACI in the same graph
On x axis: n= 1:5 On y axis: (Npcr & Uaci both are in %) Npcr = [98.95 99.45 98.60 97.60 98.85] Uaci = [26.92 23.64 24.8...

8 years 前 | 1 个回答 | 0

1

个回答

提问


I have implemented 'An Image Encryption Technique Based on Rubik Cube Principle'. I complied till %encryption(CODE attached) but not getting decrypted image.
<</matlabcentral/answers/uploaded_files/60759/encrypted%20image.jpg>>

8 years 前 | 0 个回答 | 0

0

个回答

提问


Using for loop to evaluate polynomial for different values
% Here N = 10 ; poly =[5 8 0] for i = 1:N-1; A = sum(poly); B = mod(A,N); end i = i + 1; But the end resul...

8 years 前 | 1 个回答 | 0

1

个回答

提问


How do I get the sum for every i = 1: N-1?
For N = 600 and degree = 5 After applying certain conditions, I have a polynomial which is of the form: A = [first middl...

8 years 前 | 2 个回答 | 0

2

个回答

提问


I have a code that is used for generating multiples of odd prime number dividing N
N = 600; Therefore I get oddprimes = [3 5] product = 15 Now the multiples are in the range m = 0:product:N-product , i...

8 years 前 | 0 个回答 | 0

0

个回答

提问


I have the code which generates an array for a1. For N = 10, what does a1 = [a1 a1+N/2] stores.? Is there any need?
if mod(N,2)==0 && mod(N,4)~= 0 a1 = 1: (N/2-1); a1 = a1(gcd(a1,N/2)==1); a1 = [a1 a1+N/2]; end

8 years 前 | 1 个回答 | 0

1

个回答

提问


I am trying to store the (non-repetitive) numbers in B = [3,5] after factorizing 225 = 3 x 3 x 5 x 5, but executing the code it stores only one, i.e. B = [3].
% A = factor(225); B(1) = A(1); flag = 0; for i = 1:length(A)-1; for j = i + 1; if A(i) == A(j) ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


How could find multiples of a given number N ?
The input is taken from the user.

8 years 前 | 3 个回答 | 0

3

个回答

提问


I have to calculate the sum of multiple coefficients which depends upon the value 'm'.
Could you please tell me how should I approach to this? <</matlabcentral/answers/uploaded_files/48703/123.jpg>>

8 years 前 | 1 个回答 | 0

1

个回答

提问


If N is given and I need to make a choice for a1, then using if else statements how should I apply the following condition:
(a1,N) = 1, if 2 does not divide N or 4 divides N

8 years 前 | 1 个回答 | 0

1

个回答

0

个回答

提问


I have written a code to assign each co-ordinate of matrix A(5 x 5) as A(1,1) = 1; A(1,2) = 2; and so on till A(5,5) = 25. But the code is giving errors.
I need to store it in an array using loops like [1 2 ....25]. The below code is giving me, "Expression is incorrect--possibly ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


I need to create an array (256 x 256) in which elements increments using loops.
An array in which I(1,1) = 0 I(1,2) = 1 and so on till I(256,256) = 65535 using loops

8 years 前 | 1 个回答 | 0

1

个回答

提问


I have an image (256 x 256) where its pixels ranging from 0 to 255. I need to built a look up table to map its values with image pixels.
Since I am a beginner, I cant find a way as how to start with coding for lookuptable. It would really helpful if you would help....

8 years 前 | 2 个回答 | 0

2

个回答

提问


I have an image of 256 X 256 size. And I want to get a permutation polynomial from it.
I have an image. I have a matrix containing values of the pixels in that image. I want to generate a permutation polynomial an...

9 years 前 | 0 个回答 | 0

0

个回答