Using contour as input for a function

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

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 19 日

0 投票

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)

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

質問済み:

D L
2016 年 7 月 19 日

回答済み:

2016 年 7 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by