top of page
Lets first create the central vector

 

Using the MATLAB function floor we can round a number to the nearest integer towards minus infinity. Then, we will also need to find the absolute value (abs) to discard the minus sign.

 

 

 

 

 

 

 

 

 

Matrix multiplying this A matrix by a ones-filled matrix, we get: 

 

Finally, if we add this matrix with its transpose, we are going to get the expected result

Powered by Johns Hopkins University and Purdue University - ROCkETEd

  • Facebook Classic
  • Twitter Classic
  • Google Classic
  • RSS Classic
bottom of page