what is the status of wrapToPi ?

2 visualizzazioni (ultimi 30 giorni)
Andreas Lobinger
Andreas Lobinger il 6 Nov 2017
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.

Risposte (1)

Elizabeth Reese
Elizabeth Reese il 8 Nov 2017
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 Commento
Andreas Lobinger
Andreas Lobinger il 9 Nov 2017
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
>>

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by