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

조회 수: 5 (최근 30일)
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 CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by