Revision 5a273080-61af-4507-aebb-d7988f9f727a - Code Golf Stack Exchange

# [MATL], 24 bytes

 *:2Geti=&fh3Y6&fh2-+!Z{)

Inputs are `h`, `w`, `i`. The output is a row vector or column vector with the numbers.

Input `i` and output are 1-based. 

[Try it online!][TIO-jjrhq7of] Or [verify all test cases](https://tio.run/##y00syfmf8F/LysA9tSTTVi0twzjSDEga6WorRlVr/lfX1VWPcAn5b8JlwmXGBSINgdiUywhIGwOhIQgCAA).

[MATL]: https://github.com/lmendo/MATL
[TIO-jjrhq7of]: https://tio.run/##y00syfn/X8vKyD21JNNWLS3DONIMSBrpaitGVWv@/2/CZcJlBgA "MATL – Try It Online"

AltStyle によって変換されたページ (->オリジナル) /