11 lines
104 B
Mathematica
11 lines
104 B
Mathematica
|
|
myfifo = {};
|
||
|
|
|
||
|
|
% push
|
||
|
|
myfifo{end+1} = x;
|
||
|
|
|
||
|
|
% pop
|
||
|
|
x = myfifo{1}; myfifo{1} = [];
|
||
|
|
|
||
|
|
% empty
|
||
|
|
isempty(myfifo)
|