{"action":"opened","issue":{"url":"https://api.github.com/repos/213cy/Matlab-base-toolbox/issues/3","labels_url":"https://api.github.com/repos/213cy/Matlab-base-toolbox/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/213cy/Matlab-base-toolbox/issues/3/comments","events_url":"https://api.github.com/repos/213cy/Matlab-base-toolbox/issues/3/events","html_url":"https://github.com/213cy/Matlab-base-toolbox/issues/3","id":118262788,"number":3,"title":"将读入的url文件转换成正确格式","user":{"login":"213cy","id":10978952,"avatar_url":"https://avatars.githubusercontent.com/u/10978952?v=3","gravatar_id":"","url":"https://api.github.com/users/213cy","html_url":"https://github.com/213cy","followers_url":"https://api.github.com/users/213cy/followers","following_url":"https://api.github.com/users/213cy/following{/other_user}","gists_url":"https://api.github.com/users/213cy/gists{/gist_id}","starred_url":"https://api.github.com/users/213cy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/213cy/subscriptions","organizations_url":"https://api.github.com/users/213cy/orgs","repos_url":"https://api.github.com/users/213cy/repos","events_url":"https://api.github.com/users/213cy/events{/privacy}","received_events_url":"https://api.github.com/users/213cy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/213cy/Matlab-base-toolbox/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/213cy/Matlab-base-toolbox/labels/mytool","name":"mytool","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-22T13:09:02Z","updated_at":"2015-11-22T13:09:02Z","closed_at":null,"body":"``` matlab\r\nfunction lookstr(filename,str)\r\n%将读入的url文件转换成正确格式后存入文本，并打开\r\ns = regexprep(str,{'%','\\\\'}, {'%%','\\\\\\\\'});\r\n\r\nfileID=[filename,'.txt'];\r\nfid = fopen(fileID, 'w');\r\nfprintf(fid, s);\r\n%fwrite(fid, '文字')\r\nfclose(fid);\r\nedit(fileID)\r\n\r\n```"}}