フィルターのクリア

How shift output of array

1 回表示 (過去 30 日間)
Roberto Mele
Roberto Mele 2023 年 2 月 15 日
回答済み: Jan 2023 年 2 月 15 日
How shift the output of an array from [-1,1] to [-pi,pi]
For example:
[-1 -0.5 0 0.5 1] -----> [-pi , -pi+0.5 , 0 , pi-0.5 , pi ]
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 2 月 15 日
What is the logic behind this shift?

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

回答 (1 件)

Jan
Jan 2023 年 2 月 15 日
If the transformation should be linear, this is a multiplication:
a = [-1, 1]
a = 1×2
-1 1
b = a * pi
b = 1×2
-3.1416 3.1416
But "[-1 -0.5 0 0.5 1] -----> [-pi , -pi+0.5 , 0 , pi-0.5 , pi ]" is strange and you have to explain uniquely, how this function is defined. There is an infinite number of transformations, which convert the first values into the second.

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by