Question: 1. In R load the matlab package at the beginning of your code. a). Let N be 16 and Ndiv = N/2 1) Use the

1. In R load the matlab package at the beginning of your code.

a). Let N be 16 and Ndiv = N/2 1) Use the runif function to create a matrix of random numbers that has N rows and Ndiv columns. Call this array rnd1.

b) From rnd1, create an array that is bilaterally symmetric across the y-axis. This array should have N rows and N columns. Call this array symV1

c) Create an array, from symV1, that is bilaterally symmetrix across the x-axis, call this array symH1

d) symV1 and symH1 will contain blobs along the axis of symmetry because pixels (values within the column) have been duplicated there. Create the variable symV2 and symH2 that remove the duplicated pixels the resulting matrices should have N-1 rows and N-1 columns. This means you have to remove the extra row or column perpendicular to the axis of symmetry.

e) Use runif to create a matrix of random numbers that has Ndiv rows and Ndiv columns. Call this array rnd2. From rnd2 create a matrix that is bilaterally symmetric across both the X and Y axis. Remove the duplicated pixels along the X and Y axes. Call this matrix twoFoldSymmetry.

f) Use runif to create a matrix of random numbers that is the same size as twoFoldSymmetry. Call this matrix noise. Add twoFoldSymmetry and noise/2 and store the results as signalPlusNoise.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!