⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program_5f.m

📁 《Dynamical Systems with Applications using MATLAB》源代码
💻 M
字号:
% Chapter 5 - Fractals and Multifractals.
% Program_5f - The f-alpha spectrum of dimensions.
% Copyright Birkhauser 2004. Stephen Lynch.

% An f-alpha curve for a multifractal Cantor set (Figure 5.16(c)).
k=sym('500');p1=sym('1/9');p2=sym('8/9'); 
t=0:500;
x=(t*log(p1)+(k-t)*log(p2))/(k*log(1/3));
Y(length(t))=sym('0');
for i=1:length(t)
    Y(i)=-(log(maple('binomial',k,t(i)))/(k*log(1/3)));
end
plot(double(x),double(Y)) 

axis([0 2 0 .8])
fsize=15;
set(gca,'xtick',[0:.5:2],'FontSize',fsize)
set(gca,'ytick',[0:.2:.8],'FontSize',fsize)
xlabel('\it{\alpha}','FontSize',fsize)
ylabel('\it{f(\alpha)}','FontSize',fsize)
title(' ')
hold off

% End of Program_5f.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -