{"action":"created","issue":{"url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/100","labels_url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/100/comments","events_url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/100/events","html_url":"https://github.com/arokem/python-matlab-bridge/issues/100","id":50605499,"number":100,"title":"passing matrix (dtype('float64')) containing NaNs to MATLAB","user":{"login":"leizing","id":6393100,"avatar_url":"https://avatars.githubusercontent.com/u/6393100?v=3","gravatar_id":"","url":"https://api.github.com/users/leizing","html_url":"https://github.com/leizing","followers_url":"https://api.github.com/users/leizing/followers","following_url":"https://api.github.com/users/leizing/following{/other_user}","gists_url":"https://api.github.com/users/leizing/gists{/gist_id}","starred_url":"https://api.github.com/users/leizing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leizing/subscriptions","organizations_url":"https://api.github.com/users/leizing/orgs","repos_url":"https://api.github.com/users/leizing/repos","events_url":"https://api.github.com/users/leizing/events{/privacy}","received_events_url":"https://api.github.com/users/leizing/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-02T02:30:04Z","updated_at":"2015-02-19T03:12:14Z","closed_at":"2015-02-19T03:12:14Z","body":"However, what I got in MATLAB is a cell array, which flatten the matrix. Assume the original matrix is 5 by 4, I end up with a 20 by1 cell array. Moreover, all NaNs are treated as strings 'NaN' in the cell. A bug or it is designed to be like this?"},"comment":{"url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/comments/74992735","html_url":"https://github.com/arokem/python-matlab-bridge/issues/100#issuecomment-74992735","issue_url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/100","id":74992735,"user":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T03:12:14Z","updated_at":"2015-02-19T03:12:14Z","body":"This behaviour is fixed in the latest master:\r\n\r\n```python\r\nIn [25]: S = np.ones((5,4), dtype=np.float64)\r\n\r\nIn [26]: S[0] = np.nan\r\n\r\nIn [27]: %%matlab -i S -o T\r\nT = S;\r\n   ....: \r\n\r\nIn [28]: T\r\nOut[28]: \r\narray([[ nan,  nan,  nan,  nan],\r\n       [  1.,   1.,   1.,   1.],\r\n       [  1.,   1.,   1.,   1.],\r\n       [  1.,   1.,   1.,   1.],\r\n       [  1.,   1.,   1.,   1.]])\r\n```"}}