Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
22
Task/Queue-Definition/MATLAB/queue-definition-3.m
Normal file
22
Task/Queue-Definition/MATLAB/queue-definition-3.m
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
>> myQueue = FIFOQueue({'hello'})
|
||||
|
||||
myQueue =
|
||||
|
||||
FIFOQueue
|
||||
|
||||
>> push(myQueue,'jello')
|
||||
>> pop(myQueue)
|
||||
|
||||
ans =
|
||||
|
||||
hello
|
||||
|
||||
>> pop(myQueue)
|
||||
|
||||
ans =
|
||||
|
||||
jello
|
||||
|
||||
>> pop(myQueue)
|
||||
??? Error using ==> FIFOQueue.FIFOQueue>FIFOQueue.pop at 61
|
||||
The queue is empty
|
||||
Loading…
Add table
Add a link
Reference in a new issue