W-M function to plot 3d fractal surfaces

조회 수: 13 (최근 30일)
haojie men
haojie men 2021년 4월 7일
답변: Artos Cen 2022년 2월 21일
I want to plot a fractal 3D surface using W-M function.
Here is my result:
It is different from fractal surfaces from other journal articles like this:
piture from An adhesive wear model of fractal surfaces in normal contact, X. Yin, K. Komvopoulos
I know maybe it can be resolved by increasing x and y number, but it takes a lot of time.
So, can anyone help me optimize the code?
Thanks!
  댓글 수: 2
KSSV
KSSV 2021년 4월 7일
You need to use loops in myF.m file....read about vectorizing the calculations. Read about element by element calculations.
haojie men
haojie men 2021년 4월 7일
Thanks! I will try.

댓글을 달려면 로그인하십시오.

답변 (2개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 4월 7일
Hi,
Here are corrected codes of yours. One more important note that it is not a good practice to call your m-file with a MATLAB built-in fcn or command name, e.g., plot, grid, legend, exp, clc, ....
Good luck.
  댓글 수: 2
haojie men
haojie men 2021년 4월 7일
Thanks!
It looks better than before. It now looks like this:
But it is still different from X. Lin's result. Maybe the data is optimized by some method to remove saliens.
NAN ZHANG
NAN ZHANG 2021년 4월 16일
편집: NAN ZHANG 2021년 4월 16일
Have you notice the units of X and Y? it's 'um' in Lin's paper, and 'm' in your program. Try again.

댓글을 달려면 로그인하십시오.


Artos Cen
Artos Cen 2022년 2월 21일
Hi
Just wanted to check up if you have already solved the problem yet. Thanks!

카테고리

Help CenterFile Exchange에서 Fractals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by