image thumbnail

Blancmange-Takagi Function

version (2.27 KB) by Ahmed A. Selman
Used to plot the Blancmange-Takagi function of order (w) and range (x).


Updated 19 Apr 2013

View License

Blancmange-Takagi Function.
Used to plot the Blancmange-Takagi function of order (w) and range (x). This function is an example of continuous, yet nowhere differentiable function. Typical values of (w) are in the range (0 to 1), and of x are (1 to 10).

[B,s] = blancmange(w,x) plots Blancmange-Takagi function of order (w) and range (x). The output is stored in the 1-D matrix (B) and its size in s.

[B] = blancmange(w,x,step,n) plots Blancmange-Takagi function of (w) and (x), with a specified calculation step over the interval (x) and maximum summation limit (n). When (step and n) are left as blanks, the defaults are (step = 0.005 and n = 100).

Differentiation of this function returns values of order of steps used in within it, smaller the step values correspond closer to zero differences, yet it will consume more time to run.

Cite As

Ahmed A. Selman (2022). Blancmange-Takagi Function (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!