{"action":"created","issue":{"url":"https://api.github.com/repos/cjlin1/libsvm/issues/30","labels_url":"https://api.github.com/repos/cjlin1/libsvm/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/cjlin1/libsvm/issues/30/comments","events_url":"https://api.github.com/repos/cjlin1/libsvm/issues/30/events","html_url":"https://github.com/cjlin1/libsvm/pull/30","id":69107324,"number":30,"title":"Matlab/Octave: OCTAVE_VERSION instead of ver","user":{"login":"carandraug","id":916140,"avatar_url":"https://avatars.githubusercontent.com/u/916140?v=3","gravatar_id":"","url":"https://api.github.com/users/carandraug","html_url":"https://github.com/carandraug","followers_url":"https://api.github.com/users/carandraug/followers","following_url":"https://api.github.com/users/carandraug/following{/other_user}","gists_url":"https://api.github.com/users/carandraug/gists{/gist_id}","starred_url":"https://api.github.com/users/carandraug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carandraug/subscriptions","organizations_url":"https://api.github.com/users/carandraug/orgs","repos_url":"https://api.github.com/users/carandraug/repos","events_url":"https://api.github.com/users/carandraug/events{/privacy}","received_events_url":"https://api.github.com/users/carandraug/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-17T09:56:42Z","updated_at":"2015-04-27T10:11:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cjlin1/libsvm/pulls/30","html_url":"https://github.com/cjlin1/libsvm/pull/30","diff_url":"https://github.com/cjlin1/libsvm/pull/30.diff","patch_url":"https://github.com/cjlin1/libsvm/pull/30.patch"},"body":"This is the [recommended method](https://www.gnu.org/software/octave/doc/interpreter/How-to-distinguish-between-Octave-and-Matlab_003f.html) to distinguish between Octave and Matlab. \r\n\r\n`ver` returns a struct array, one element for Octave and another for each of the installed packages. It is not documented that the first element will be Octave. This method is also much simpler."},"comment":{"url":"https://api.github.com/repos/cjlin1/libsvm/issues/comments/96595596","html_url":"https://github.com/cjlin1/libsvm/pull/30#issuecomment-96595596","issue_url":"https://api.github.com/repos/cjlin1/libsvm/issues/30","id":96595596,"user":{"login":"infwinston","id":1206058,"avatar_url":"https://avatars.githubusercontent.com/u/1206058?v=3","gravatar_id":"","url":"https://api.github.com/users/infwinston","html_url":"https://github.com/infwinston","followers_url":"https://api.github.com/users/infwinston/followers","following_url":"https://api.github.com/users/infwinston/following{/other_user}","gists_url":"https://api.github.com/users/infwinston/gists{/gist_id}","starred_url":"https://api.github.com/users/infwinston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infwinston/subscriptions","organizations_url":"https://api.github.com/users/infwinston/orgs","repos_url":"https://api.github.com/users/infwinston/repos","events_url":"https://api.github.com/users/infwinston/events{/privacy}","received_events_url":"https://api.github.com/users/infwinston/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T10:11:07Z","updated_at":"2015-04-27T10:11:07Z","body":"@carandraug \r\n\"exist (\"OCTAVE_VERSION\", \"builtin\")\" will not work for Matlab, since double quotation is invalid in Matlab.\r\nI think it should be modified to \"exist ('OCTAVE_VERSION', 'builtin')\"?\r\nThanks."}}