Why is a regular expression used in this code?

I found a code to dump zero rows/columns in the southeast part of a given matrix:
function b = ZeroDumping(a)
regexp '' '(?@ b=transpose(deblank(transpose(deblank(a)))); )'
end
I do understand the part 'b=transpose(deblank(transpose(deblank(a))));', but I have no idea what the other parts are doing. Why is the regular expression used in this code? What does " '' '(?@" represent?

 採用された回答

Rik
Rik 2022 年 1 月 4 日

5 投票

This syntax is designed to fool the Cody score calculator to think it is using only a few non-complex function calls.
In every other situation this is a terrible way to write code.

2 件のコメント

Daigo
Daigo 2022 年 1 月 4 日
Oops, such an evil purpose behind this code! I won't copy this code, then.
Star Strider
Star Strider 2022 年 1 月 4 日
I never would have guessed that!
+1

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

リリース

R2021b

質問済み:

2022 年 1 月 4 日

コメント済み:

2022 年 1 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by