How to find the extremum search curve of a parametric surface?

5 ビュー (過去 30 日間)
DAT THAN TRONG KHANH
DAT THAN TRONG KHANH 2019 年 7 月 6 日
編集済み: DAT THAN TRONG KHANH 2019 年 7 月 17 日
I have a parametric surface S(u,v). Can anybody help me solve the differential equation to find the extremum search curve like the pictures below?
These curves passe the local maxima and minima of the surface (z direction).
The extremum search curve is represented as:
Example:
syms u v;
x=u;
y=v;
z=sin(u).*cos(v)-1/8*u*v;
figure; fsurf(x,y,z,[0 2*pi 0 2*pi]);axis equal
or
Thank you so much!
  5 件のコメント
DAT THAN TRONG KHANH
DAT THAN TRONG KHANH 2019 年 7 月 8 日
Thank you for your answer.
For finding the local extrema, I can use this code (Image Processing Toolbox)
clc
syms u v;
x=u;
y=v;
z=sin(u).*cos(v)-1/8*u*v;
%figure; fsurf(x,y,z,[0 2*pi 0 2*pi]);axis equal
deltaU=0.2; deltaV=0.2;
Ui=0:deltaU:2*pi;
Vi=0:deltaV:2*pi;
[ui, vi] = meshgrid(Ui,Vi);
SX = double(subs(x, {u v}, { ui vi }));
SY = double(subs(y, {u v}, { ui vi }));
SZ = double(subs(z, {u v}, { ui vi }));
figure; surf(SX, SY, SZ); % ith patch of a piecewise surface3
%axis equal
xlabel('x');ylabel('y');xlabel('z');
ix = find(imregionalmax(SZ));
iy = find(imregionalmax(-SZ));
hold on
plot3(SX(ix),SY(ix),SZ(ix),'r*','MarkerSize',24)
plot3(SX(iy),SY(iy),SZ(iy),'b*','MarkerSize',24)
But I want to find the extremum search curve as figure above.
DAT THAN TRONG KHANH
DAT THAN TRONG KHANH 2019 年 7 月 8 日
There are 4 local maxima points and 3 local minima points.
untitled12.png
When I solve the differential equation, I just get 2 extremum search curves.
untitled14.png

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

採用された回答

darova
darova 2019 年 7 月 8 日
If you have specific point (local max or min) you can substitute (x0,y0) in your function
- first search curve (any x)
- second search curve (any y)
Untitled.png
  16 件のコメント
DAT THAN TRONG KHANH
DAT THAN TRONG KHANH 2019 年 7 月 12 日
編集済み: DAT THAN TRONG KHANH 2019 年 7 月 17 日
Thank you for your answer,
I have a Bspline surface like that:
Can you help me to generate the parametric curve (the spiral curve above) that is mapped into the BSpline surface with the same method above?
Thank you so much!
darova
darova 2019 年 7 月 12 日
You have to learn/understand how griddata works. You already have X,Y and Z data
Generate x,y and use griddata to calculate z
Use interparc if interpolation is needed
It is easy. Gool luck!

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by