{"action":"closed","issue":{"url":"https://api.github.com/repos/mtex-toolbox/mtex/issues/50","labels_url":"https://api.github.com/repos/mtex-toolbox/mtex/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/mtex-toolbox/mtex/issues/50/comments","events_url":"https://api.github.com/repos/mtex-toolbox/mtex/issues/50/events","html_url":"https://github.com/mtex-toolbox/mtex/issues/50","id":69114866,"number":50,"title":"Question u = h.uvw with h as Miller gives u as double variable not Miller","user":{"login":"DavidMainprice","id":10712356,"avatar_url":"https://avatars.githubusercontent.com/u/10712356?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidMainprice","html_url":"https://github.com/DavidMainprice","followers_url":"https://api.github.com/users/DavidMainprice/followers","following_url":"https://api.github.com/users/DavidMainprice/following{/other_user}","gists_url":"https://api.github.com/users/DavidMainprice/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidMainprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidMainprice/subscriptions","organizations_url":"https://api.github.com/users/DavidMainprice/orgs","repos_url":"https://api.github.com/users/DavidMainprice/repos","events_url":"https://api.github.com/users/DavidMainprice/events{/privacy}","received_events_url":"https://api.github.com/users/DavidMainprice/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-17T10:44:34Z","updated_at":"2015-04-24T18:00:13Z","closed_at":"2015-04-24T18:00:13Z","body":"Question u = h.uvw with h as Miller gives u as double variable not Miller\r\n```\r\nh = Miller (show methods, plot)\r\n size: 1 x 1\r\n mineral: An100 (-1, X||a*, Z||c)\r\n  h 1\r\n  k 1\r\n  l 1\r\n```\r\n```matlab\r\nu = h.uvw\r\n```\r\n```\r\nu = 0.0238    0.0070    0.0113\r\n```\r\n How do convert u to Miller?\r\n``` matlab\r\nMiller(u,CS)\r\n```\r\n```\r\nError using Miller (line 106)\r\nYou need at least 3 Miller indice!\r\n% only solution seems to be for an integer result\r\n```\r\n```matlab\r\nround(Miller(u(1),u(2),u(3),CS,'uvw'))\r\n```\r\n```\r\nans = Miller (show methods, plot)\r\n size: 1 x 1\r\n mineral: An100 (-1, X||a*, Z||c)\r\n  u 9\r\n  v 3\r\n  w 4\r\n```\r\nall the best David\r\n\r\n"}}