{"action":"created","issue":{"url":"https://api.github.com/repos/mlp6/ultratrack/issues/6","repository_url":"https://api.github.com/repos/mlp6/ultratrack","labels_url":"https://api.github.com/repos/mlp6/ultratrack/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/mlp6/ultratrack/issues/6/comments","events_url":"https://api.github.com/repos/mlp6/ultratrack/issues/6/events","html_url":"https://github.com/mlp6/ultratrack/issues/6","id":249694614,"number":6,"title":"non-plaid mesh","user":{"login":"mlp6","id":3239175,"avatar_url":"https://avatars1.githubusercontent.com/u/3239175?v=4","gravatar_id":"","url":"https://api.github.com/users/mlp6","html_url":"https://github.com/mlp6","followers_url":"https://api.github.com/users/mlp6/followers","following_url":"https://api.github.com/users/mlp6/following{/other_user}","gists_url":"https://api.github.com/users/mlp6/gists{/gist_id}","starred_url":"https://api.github.com/users/mlp6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlp6/subscriptions","organizations_url":"https://api.github.com/users/mlp6/orgs","repos_url":"https://api.github.com/users/mlp6/repos","events_url":"https://api.github.com/users/mlp6/events{/privacy}","received_events_url":"https://api.github.com/users/mlp6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-11T17:07:58Z","updated_at":"2017-08-11T17:08:09Z","closed_at":null,"body":"This change was a little more involved (no MEX file unfortunately, just straight Matlab). Basically, there are 2 kinds of interpolant classes in matlab, griddedInterpolant and scatteredInterpolant. The gridded version is the one that interpn() uses and requires the matrix to be plaid, etc. The scattered version is the one that griddata() uses, which I think is confusingly named since you don’t need a grid. What’s nice with the scatteredInterpolant is that you just pass in XYZ coordinates and the value at each coordinate, and it figures out the interpolant from there. So basically, in the read_dot_dyn function, you can remove all that meshgrid stuff that happens after the textscan, and just pipe the 4 vectors (X,Y,Z, Val) directly into the interpolation function. I chose to implement this approach using the scatteredInterpolant() rather than griddata(), but either could work."},"comment":{"url":"https://api.github.com/repos/mlp6/ultratrack/issues/comments/321867654","html_url":"https://github.com/mlp6/ultratrack/issues/6#issuecomment-321867654","issue_url":"https://api.github.com/repos/mlp6/ultratrack/issues/6","id":321867654,"user":{"login":"mlp6","id":3239175,"avatar_url":"https://avatars1.githubusercontent.com/u/3239175?v=4","gravatar_id":"","url":"https://api.github.com/users/mlp6","html_url":"https://github.com/mlp6","followers_url":"https://api.github.com/users/mlp6/followers","following_url":"https://api.github.com/users/mlp6/following{/other_user}","gists_url":"https://api.github.com/users/mlp6/gists{/gist_id}","starred_url":"https://api.github.com/users/mlp6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlp6/subscriptions","organizations_url":"https://api.github.com/users/mlp6/orgs","repos_url":"https://api.github.com/users/mlp6/repos","events_url":"https://api.github.com/users/mlp6/events{/privacy}","received_events_url":"https://api.github.com/users/mlp6/received_events","type":"User","site_admin":false},"created_at":"2017-08-11T17:08:09Z","updated_at":"2017-08-11T17:08:09Z","body":"outside for-loop:\r\n```\r\n%Predefine interpolants for X Y and Z displacement data\r\n\r\nFx = scatteredInterpolant(nodes(:,2),nodes(:,3),nodes(:,4),zeros(size(nodes,1),1));\r\nFy = scatteredInterpolant(nodes(:,2),nodes(:,3),nodes(:,4),zeros(size(nodes,1),1));\r\nFz = scatteredInterpolant(nodes(:,2),nodes(:,3),nodes(:,4),zeros(size(nodes,1),1));\r\n```"}}
{"actor":{"display_login":"mlp6"}}