MATLAB Answers

Pavel
0

How to edit *.m files on Matlab Mobile?

Asked by Pavel
on 18 Jan 2012
Latest activity Answered by Pradeep
on 25 Oct 2016
Hi! Is it possible to edit *.m files on MATLAB Mobile (I'm using iPad version)? The command "edit file.m" doesn't work. Thank you in advance!
Regards, Pavel

  0 Comments

Sign in to comment.

4 Answers

Answer by Michael Katz on 18 Jan 2012
 Accepted Answer

There is no way to edit files with MATLAB Mobile. Well, at least not without directly manipulating the text in the workspace with functions like textscan and fprintf.

  3 Comments

Sorry, there is or there is no?
The rest of the wording suggests that Michael meant to say "There is no way currently [...]"
Sorry. That's what I get for answering without enough coffee. I've updated my statement, thanks.

Sign in to comment.


Answer by Pradeep
on 25 Oct 2016

The current versions of the app (both iOS and Android) provide an editor to create new files and edit existing files. Download these here:

iOS: https://itunes.apple.com/us/app/matlab-mobile/id370976661?mt=8

Android: https://play.google.com/store/apps/details?id=com.mathworks.matlabmobile

  0 Comments

Sign in to comment.


Answer by Henrik Asplund on 27 Jan 2012

I use the following setup on my Mac and iPad for editing .m files:
  • SSH enabled on Mac
  • For editing the .m files I use Textastic code editor on iPad. It can upload/download the files over SFTP to/from the Matlab directory on my Mac, and can highlight Matlab .m syntax
  • Matlab mobile is connected to the Matlab on my Mac in the usual way.
Basically all you need is a code editor on the mobile device and a way to easily transfer the files over e.g. SSH to the right folder. Then you just download the .m file, edit it and put it back.
I assume this setup can be used with Windows and Linux, too.

  2 Comments

Thank you, Henrik!
Currently, I'm doing it in a similar way. I'm just using Dropbox to transfer/synchronize my *.m files with my windows and linux computers.
What is the SFTP port and address of MATLAB mobile cloud?

Sign in to comment.


Answer by David Fischer on 23 Apr 2016

Good tip on using DropBox. If you're on a Mac and want Dropbox to be synced with Matlab Drive, so edits in an outside editor are available for use in Matlab Mobile, you can use MacDropAny: http://www.zibity.com/macdropany.html
If you like using the Command Line, see here to do this manually: http://hints.macworld.com/article.php?story=20120803093247391

  0 Comments

Sign in to comment.