Gave up on looking for this in the web... How can I do the following in Matlab:
%%%%%%%%%%%%%%%%%%%%%
% library.m
%%%%%%%%%%%%%%%%%%%%%
function do_this()
% ...
end
function do_that()
% ...
end
%%%%%%%%%%%%%%%%%%%%%
% foo.m
%%%%%%%%%%%%%%%%%%%%%
function foo()
for i = 1:100
do_this();
end
do_that();
end
My question again: how can I create a library of functions that are organized within one file, and that could be called from other functions/scripts?