フィルターのクリア

How to Curve Fitting saved plot (.fig)?

2 ビュー (過去 30 日間)
Mert Dogan
Mert Dogan 2017 年 10 月 14 日
コメント済み: Mert Dogan 2017 年 10 月 15 日
I have 56 plot3 graphics for a project. 1 Graph = 138 peoples datas for per x,y,z. I want to curve fitting this graphics. How can i curve fitting saved graphics(.fig)?

採用された回答

Jonathan Chin
Jonathan Chin 2017 年 10 月 14 日
you can get the x y and z data from a fig
%%some figure with data on it
fig = figure(1);
z = 0:10;
x=15:25;
y=10:-1:0;
plot(x,y,z)
%%grab data
linehandle = findall(gca,'type','line')
linehandle=linehandle(1)%use the first line if there is more then 1
xfig=get(linehandle,'XData')
yfig=get(linehandle,'YData')
zfig =get(linehandle,'ZData')
all(x==xfig)&all(y==yfig)&all(z==zfig)% check if the data is the same
from here you can do your interp3
  1 件のコメント
Mert Dogan
Mert Dogan 2017 年 10 月 15 日
Thanks Jonathan.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by