Skip to main content
20-Turquoise
April 23, 2017
Solved

Creating a program function ?

  • April 23, 2017
  • 2 replies
  • 1409 views

   Hello Everyone.

Creating a program function.PNG

   Need help with creating a program function W(  ) with the input and a similar output as the above ?

        Thanks in advance.

               Regards.

Best answer by Werner_E

Here you are.

If in case of an odd number of columns you want zeros the center column, simply change "round" to "trunc".

2 replies

25-Diamond I
April 23, 2017

What will you do if the number of columns is odd?

Werner_E25-Diamond IAnswer
25-Diamond I
April 23, 2017

Here you are.

If in case of an odd number of columns you want zeros the center column, simply change "round" to "trunc".

lvl10720-TurquoiseAuthor
20-Turquoise
April 23, 2017

Many thanks for your time and help, Werner.   

       Best Regards.