MATLAB Answers


Graphical output from FINDPEAKS

Asked by onewhaleid on 11 Jun 2015
Latest activity Commented on by onewhaleid on 11 Jun 2015
The documentation for findpeaks states the following:
FINDPEAKS(...) without output arguments plots the signal and the peak values it finds
For example, you can call it like this:
I just discovered this behaviour, and I think it's quite a nice touch by the author.
Are there any other analytical functions like this that provide some kind of graphical output if there are are no explicit output arguments (instead of just returning the result to the command window)?
I know that functions like image and peaks give a graphical output, but they just use default values.


Sign in to comment.

1 Answer

Answer by Image Analyst
on 11 Jun 2015

I think some of the histogramming functions will throw up a GUI (like a bar chart) if you don't collect any output variables.

  1 Comment

Yes! I forgot about hist. I will add it to the list.

Sign in to comment.