Filter löschen
Filter löschen

W-M function to plot 3d fractal surfaces

10 Ansichten (letzte 30 Tage)
haojie men
haojie men am 7 Apr. 2021
Beantwortet: Artos Cen am 21 Feb. 2022
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 Kommentare
KSSV
KSSV am 7 Apr. 2021
You need to use loops in myF.m file....read about vectorizing the calculations. Read about element by element calculations.
haojie men
haojie men am 7 Apr. 2021
Thanks! I will try.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 7 Apr. 2021
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 Kommentare
haojie men
haojie men am 7 Apr. 2021
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 am 16 Apr. 2021
Bearbeitet: NAN ZHANG am 16 Apr. 2021
Have you notice the units of X and Y? it's 'um' in Lin's paper, and 'm' in your program. Try again.

Melden Sie sich an, um zu kommentieren.


Artos Cen
Artos Cen am 21 Feb. 2022
Hi
Just wanted to check up if you have already solved the problem yet. Thanks!

Kategorien

Mehr zu Fractals finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by