what is the status of wrapToPi ?

2 次查看(过去 30 天)
a colleague of mine decided to use wrapToPi in our multi-version matlab environment and i got confused on availability. Mathworks website lists the function as member of the mappingTB in 2017a. My local matlab installation 2016b (without mappingTB) has the function, our mcc installation on R2016a complains about a missing function of that name.

回答(1 个)

Elizabeth Reese
Elizabeth Reese 2017-11-8
Based on our documentation, the wrapToPi function belongs to the Mapping Toolbox in each release you mention above.
You can find our documentation for each release at the link below:
You can use the command below to get the path of this function. This will tell you if you defined your own wrapToPi or you are accessing the Mapping Toolbox version.
which -all wrapToPi
  1 个评论
Andreas Lobinger
Andreas Lobinger 2017-11-9
while i agree with your view on current documentation, my local matlab installation is undecided...
>> which -all wrapToPi
C:\Program Files\MATLAB\R2016b\toolbox\shared\maputils\wrapToPi.m
>> ver
----------------------------------------------------------------------------------------------------
MATLAB Version: 9.1.0.441655 (R2016b)
MATLAB License Number: 182xxx
Operating System: Microsoft Windows 7 Professional Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Version 9.1 (R2016b)
Parallel Computing Toolbox Version 6.9 (R2016b)
Signal Processing Toolbox Version 7.3 (R2016b)
>> wrapToPi(linspace(0,6,6))
ans =
0 1.2000 2.4000 -2.6832 -1.4832 -0.2832
>>

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by