MATLAB - multiple return values from a function?

前端 未结 4 408
隐瞒了意图╮
隐瞒了意图╮ 2021-02-04 23:35

I\'m writing 2 functions in matlab, an initialize function and a function to insert items into an array treating it like a doubly-linked list. However, my initialize function on

4条回答
  •  后悔当初
    2021-02-05 00:15

    Matlab allows you to return multiple values as well as receive them inline.

    When you call it, receive individual variables inline:

    [array, listp, freep] = initialize(size)
    

提交回复
热议问题