{"action":"created","issue":{"url":"https://api.github.com/repos/casadi/casadi/issues/1365","labels_url":"https://api.github.com/repos/casadi/casadi/issues/1365/labels{/name}","comments_url":"https://api.github.com/repos/casadi/casadi/issues/1365/comments","events_url":"https://api.github.com/repos/casadi/casadi/issues/1365/events","html_url":"https://github.com/casadi/casadi/issues/1365","id":64715166,"number":1365,"title":"Codegen mexfunction gateway","user":{"login":"jaeandersson","id":2487645,"avatar_url":"https://avatars.githubusercontent.com/u/2487645?v=3","gravatar_id":"","url":"https://api.github.com/users/jaeandersson","html_url":"https://github.com/jaeandersson","followers_url":"https://api.github.com/users/jaeandersson/followers","following_url":"https://api.github.com/users/jaeandersson/following{/other_user}","gists_url":"https://api.github.com/users/jaeandersson/gists{/gist_id}","starred_url":"https://api.github.com/users/jaeandersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaeandersson/subscriptions","organizations_url":"https://api.github.com/users/jaeandersson/orgs","repos_url":"https://api.github.com/users/jaeandersson/repos","events_url":"https://api.github.com/users/jaeandersson/events{/privacy}","received_events_url":"https://api.github.com/users/jaeandersson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/casadi/casadi/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/casadi/casadi/milestones/12","html_url":"https://github.com/casadi/casadi/milestones/Version%202.4.0","labels_url":"https://api.github.com/repos/casadi/casadi/milestones/12/labels","id":1023015,"number":12,"title":"Version 2.4.0","description":"","creator":{"login":"jaeandersson","id":2487645,"avatar_url":"https://avatars.githubusercontent.com/u/2487645?v=3","gravatar_id":"","url":"https://api.github.com/users/jaeandersson","html_url":"https://github.com/jaeandersson","followers_url":"https://api.github.com/users/jaeandersson/followers","following_url":"https://api.github.com/users/jaeandersson/following{/other_user}","gists_url":"https://api.github.com/users/jaeandersson/gists{/gist_id}","starred_url":"https://api.github.com/users/jaeandersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaeandersson/subscriptions","organizations_url":"https://api.github.com/users/jaeandersson/orgs","repos_url":"https://api.github.com/users/jaeandersson/repos","events_url":"https://api.github.com/users/jaeandersson/events{/privacy}","received_events_url":"https://api.github.com/users/jaeandersson/received_events","type":"User","site_admin":false},"open_issues":83,"closed_issues":9,"state":"open","created_at":"2015-03-16T10:01:44Z","updated_at":"2015-04-17T16:06:49Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-03-27T07:51:01Z","updated_at":"2015-04-17T16:06:49Z","closed_at":"2015-04-17T16:06:49Z","body":"It would be very useful to optionally include a mexfunction gateway in generated C code. Then the code could be used directly in MATLAB."},"comment":{"url":"https://api.github.com/repos/casadi/casadi/issues/comments/94017277","html_url":"https://github.com/casadi/casadi/issues/1365#issuecomment-94017277","issue_url":"https://api.github.com/repos/casadi/casadi/issues/1365","id":94017277,"user":{"login":"jaeandersson","id":2487645,"avatar_url":"https://avatars.githubusercontent.com/u/2487645?v=3","gravatar_id":"","url":"https://api.github.com/users/jaeandersson","html_url":"https://github.com/jaeandersson","followers_url":"https://api.github.com/users/jaeandersson/followers","following_url":"https://api.github.com/users/jaeandersson/following{/other_user}","gists_url":"https://api.github.com/users/jaeandersson/gists{/gist_id}","starred_url":"https://api.github.com/users/jaeandersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaeandersson/subscriptions","organizations_url":"https://api.github.com/users/jaeandersson/orgs","repos_url":"https://api.github.com/users/jaeandersson/repos","events_url":"https://api.github.com/users/jaeandersson/events{/privacy}","received_events_url":"https://api.github.com/users/jaeandersson/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T16:06:49Z","updated_at":"2015-04-17T16:06:49Z","body":"Sparse matrices as inputs now also supported. Use of generated function:\r\n```matlab\r\n[z1,z2,z3] = f(x1, x2, x3, x4)\r\n```\r\nNumber of outputs can be fewer than the maximum number (in which case remaining outputs are ignored). Number of inputs can be fewer than the maximum number (in which case remaining outputs are assumed to be zero).  Inputs have to have matching dimensions, or be scalar (meaning set all) or be a vector of the right length (i.e. a row vector can be used to assign a column vector and v.v). Outputs are always sparse. Ping @GLicitra."}}