creatting a polygon in matlab
古いコメントを表示
hi
im going to create a polygon that is combination with points and function.
look at this picture

fourmula of top function is : y = 10+1*exp((-(x-15).^2)/10);
i want to creat a polygon the hatched figured
please help, thanks
採用された回答
その他の回答 (1 件)
Alan Stevens
2020 年 10 月 4 日
You could also use the patch function
x = [0 0:30 30 0];
y = [0 10+exp((-(x(2:end-2)-15).^2)/10) 0 0];
patch(x,y,'r')
カテゴリ
ヘルプ センター および File Exchange で Elementary Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!