Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: tools-webrtc/matlab/maxUnwrap.m

Issue 2584433002: Create top-level dir tools-webrtc and start moving things into it. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools-webrtc/gn_check_autofix.py ('k') | tools-webrtc/matlab/parseLog.m » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 function sequence = maxUnwrap(sequence, max) 1 function sequence = maxUnwrap(sequence, max)
2 % 2 %
3 % sequence = maxUnwrap(sequence, max) 3 % sequence = maxUnwrap(sequence, max)
4 % Unwraps when a wrap around is detected. 4 % Unwraps when a wrap around is detected.
5 % 5 %
6 % Arguments 6 % Arguments
7 % 7 %
8 % sequence: The vector to unwrap. 8 % sequence: The vector to unwrap.
9 % max: The maximum value that the sequence can take, 9 % max: The maximum value that the sequence can take,
10 % and after which it will wrap over to 0. 10 % and after which it will wrap over to 0.
11 % 11 %
12 % Return value 12 % Return value
13 % 13 %
14 % sequence: The unwrapped vector. 14 % sequence: The unwrapped vector.
15 % 15 %
16 16
17 % Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 17 % Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
18 % 18 %
19 % Use of this source code is governed by a BSD-style license 19 % Use of this source code is governed by a BSD-style license
20 % that can be found in the LICENSE file in the root of the source 20 % that can be found in the LICENSE file in the root of the source
21 % tree. An additional intellectual property rights grant can be found 21 % tree. An additional intellectual property rights grant can be found
22 % in the file PATENTS. All contributing project authors may 22 % in the file PATENTS. All contributing project authors may
23 % be found in the AUTHORS file in the root of the source tree. 23 % be found in the AUTHORS file in the root of the source tree.
24 24
25 sequence = round((unwrap(2 * pi * sequence / max) * max) / (2 * pi)); 25 sequence = round((unwrap(2 * pi * sequence / max) * max) / (2 * pi));
OLDNEW
« no previous file with comments | « tools-webrtc/gn_check_autofix.py ('k') | tools-webrtc/matlab/parseLog.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698