matlab inside urlread () and webread () function reads two built-in Web content, the proper way so that they can use the API provided by the translation in the translation of internal procedures.
Here is the official instructions proper way translation API:
For example, we need to translate i love matlab these words, written in the manner given URL, reads obtained by the urlread function:
If you need to translate Chinese into English, you must first Chinese utf-8 encoding, use the function urlencode (), or an error occurs. Finally, regular expression string extraction required, you can also use the function to pick strfind.
For example, now I have to translate Chinese word
is returned, there is a long list of strings, we need to part:
find strfind both ends by two functions:
through the strrep () function inside too much space and do not need to replace the code with strtrim () function can be removed and trailing spaces:
mission completed!