finding point on a function
    7 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I have a function P using polyfit. How can I find the corrdinate on P when x=a? 
0 件のコメント
回答 (2 件)
  Ameer Hamza
      
      
 2020 年 12 月 9 日
        You can use polyval()
xv; % x data-points
yv; % y data-points
p = polyfit(xv, yv, 3);
x = a;
y = polyval(p, x);
0 件のコメント
  KSSV
      
      
 2020 年 12 月 9 日
        Read about interp1. 
Let (x,y) be your data. 
xi = a ; 
yi = interp1(x,y,xi) ;
[xi yi]
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
			
	製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


