I am unable to understand the use of ~ here.I know that find peaks returns two arguments x and y axis of peak
2 views (last 30 days)
Show older comments
Answers (1)
Stephen23
on 12 Jun 2021
Edited: Stephen23
on 12 Jun 2021
In both of the examples you show, the code's author wanted the second output from FINDPEAKS, and so ignored the first output using the tilde. What outputs a function has is explained by its documentation.
"I know that find peaks returns two arguments x and y axis of peak"
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!