필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by