{"action":"created","issue":{"url":"https://api.github.com/repos/bastibe/Violinplot-Matlab/issues/8","repository_url":"https://api.github.com/repos/bastibe/Violinplot-Matlab","labels_url":"https://api.github.com/repos/bastibe/Violinplot-Matlab/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/bastibe/Violinplot-Matlab/issues/8/comments","events_url":"https://api.github.com/repos/bastibe/Violinplot-Matlab/issues/8/events","html_url":"https://github.com/bastibe/Violinplot-Matlab/issues/8","id":342850606,"node_id":"MDU6SXNzdWUzNDI4NTA2MDY=","number":8,"title":"Formatting data to use","user":{"login":"misslitty","id":41449513,"node_id":"MDQ6VXNlcjQxNDQ5NTEz","avatar_url":"https://avatars0.githubusercontent.com/u/41449513?v=4","gravatar_id":"","url":"https://api.github.com/users/misslitty","html_url":"https://github.com/misslitty","followers_url":"https://api.github.com/users/misslitty/followers","following_url":"https://api.github.com/users/misslitty/following{/other_user}","gists_url":"https://api.github.com/users/misslitty/gists{/gist_id}","starred_url":"https://api.github.com/users/misslitty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misslitty/subscriptions","organizations_url":"https://api.github.com/users/misslitty/orgs","repos_url":"https://api.github.com/users/misslitty/repos","events_url":"https://api.github.com/users/misslitty/events{/privacy}","received_events_url":"https://api.github.com/users/misslitty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-19T19:00:22Z","updated_at":"2018-07-21T10:04:03Z","closed_at":null,"author_association":"NONE","body":"Hi, your plot looks beautiful.  This is a basic issue, but how should data be formatted for the program to run properly?\r\n\r\nI currently have three groups, CCC, FFF, VVV, entered in a format such as CCC = [12 14 23 34 54 25]; \r\nThis is not running properly and I am wondering how I should be entering these values instead so that I can get it to run.\r\n\r\nSorry for the stupid question, and any help is much appreciated!"},"comment":{"url":"https://api.github.com/repos/bastibe/Violinplot-Matlab/issues/comments/406785185","html_url":"https://github.com/bastibe/Violinplot-Matlab/issues/8#issuecomment-406785185","issue_url":"https://api.github.com/repos/bastibe/Violinplot-Matlab/issues/8","id":406785185,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjc4NTE4NQ==","user":{"login":"bastibe","id":649181,"node_id":"MDQ6VXNlcjY0OTE4MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/649181?v=4","gravatar_id":"","url":"https://api.github.com/users/bastibe","html_url":"https://github.com/bastibe","followers_url":"https://api.github.com/users/bastibe/followers","following_url":"https://api.github.com/users/bastibe/following{/other_user}","gists_url":"https://api.github.com/users/bastibe/gists{/gist_id}","starred_url":"https://api.github.com/users/bastibe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bastibe/subscriptions","organizations_url":"https://api.github.com/users/bastibe/orgs","repos_url":"https://api.github.com/users/bastibe/repos","events_url":"https://api.github.com/users/bastibe/events{/privacy}","received_events_url":"https://api.github.com/users/bastibe/received_events","type":"User","site_admin":false},"created_at":"2018-07-21T10:04:03Z","updated_at":"2018-07-21T10:04:03Z","author_association":"OWNER","body":"Thank you. There are two problems in your code, the way you showed it here. Both are in the line that begins with `cat = [...`:\r\n1. Since these are strings, the `[` operator will concatenate them together. `['CCC', 'CCC', 'CCC']` will result in `'CCCCCCCCC'`. This is not what you want. Use `{'CCC', 'CCC', ... }` instead to make a cell array of strings.\r\n2. There are two `;` in that long list. `cat` needs to have the same dimensions as `data`. Replace these `;` with `,`.\r\n\r\nWith these two modifications, your example works on my machine:\r\n```matlab\r\nCCC = [ 293 234 234 234 236 273 305 305 313 416 465 465 537 698 699 727 784 787 838 1072 1208 1232 1237 1246 1290 1311 1342 1473 1544 1562 1562 1566 1568 1729 1767 1793 1815 1969 2013 2209 2222 2225 2305 2441 3158 3384 3609 3655 3748 3762 3855 4632 4933 6139 6391 6911 6936 7217 11325 14902 16330 18129 ];\r\nFFF = [ 167 176 176 180 183 188 189 207 332 346 369 371 372 394 509 526 549 620 628 693 827 838 859 1078 1187 1206 1217 ];\r\nVVV = [ 305 307 913 1109 1133 1331 1603 1821 2113 3186 3246 3307 3563 4598 4876 8337 18806 ];\r\n\r\ndata = [CCC,FFF,VVV];\r\ncat = {'CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','CCC','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','FFF','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV','VVV'};\r\nviolinplot(data,cat)\r\n```"}}
{"actor":{"display_login":"bastibe"}}