Using contour as input for a function

Is it possible to use a contour plot as an input for a function? If so how?

Answers (1)

You can use the handle of your plot. Example
function y=your_function(h)
y=get(h)
To call the function
handle_h=plot(sin(1:100))
y=your_function(gcf)

Categories

Asked:

D L
on 19 Jul 2016

Answered:

on 19 Jul 2016

Community Treasure Hunt

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

Start Hunting!