Skip to content

Instantly share code, notes, and snippets.

clear
%close all
% CHOOSE input parameters:
num_iter = 250; % number of iterations
lim = inf; % value at which we declare the sequence as "unbounded"
num_pix_real = 1080; % number of pixels in x
num_pix_imag = 1920;
%c_lims = [ -.8401 -.8391 .2224 ];
%c_lims = [ -.84008 -.83895 .2224 ];
function Z = base2base(varargin)
% Three inputs: origin array, origin base, target base
% If a base is specified by a number, say b, the digits are [0,1,...,d-1].
% The base can also be directly an array with the digits
% Fourth input, optional: how many digits the output should have as a
% minimum (padding with leading zeros, i.e with the first digit)
% Non-valid digits in origin array are discarded.
% It works with cell arrays. In this case it gives a matriz in which each
% row is padded with leading zeros if needed
V!U % obtain an array of the digits of an integer number. It works by converting
% to string, then transposing, then converting to number. Transposition is
% needed so that conversion to number treats each digit separately
@lmendo
lmendo / tmp_list_&
Last active May 5, 2016 21:56
Possible definitions for `&` (provisional, incomplete list)
! 2$
( 4$
) 2#
Y) 2#
Z) 2#
Y' 4#, that is, FT#
Z' 1$
X$ 2$
X& 3$
* N$