Which function provide this output?

11 ビュー (過去 30 日間)
Eduardo de la Rosa
Eduardo de la Rosa 2021 年 3 月 5 日
コメント済み: Walter Roberson 2021 年 3 月 6 日
Hello everyone!
I need a function f(x), where x are positive integers, that provides the following output pattern:
x: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18...
f(x): 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6...
Thanks in advance!
  3 件のコメント
Basil C.
Basil C. 2021 年 3 月 6 日
I think you mean difference of remainder and target value @Walter Roberson
Walter Roberson
Walter Roberson 2021 年 3 月 6 日
No, I mean sum. 1 remainder, desired value is 7, sum is 8

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by