Google(R) Translate

Translates a string between languages using Google(R)'s Language API.
Updated 1 Sep 2016

View License

This file uses MATLAB(R)'s web services with Google's AJAX Language Translation API to take one string and translate it to anther:
For example to translate a string to Sweedish:

>> gtranslate('Good morning Mr. Peterson, how is your cat?','sv')

ans =

God morgon Mr Peterson, hur är din katt?

You can specify source (default is English) and destination languages using the two-letter codes.

Note that the default character encoding may make some languages (Russian, Japanese, etc) unrenderable.

Cite As

Michael Katz (2024). Google(R) Translate (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated license

added trademark

added trademarks

originally uploaded wrong helper files.