You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
How to creat and edit m-file on linux server?
1 view (last 30 days)
Show older comments
I am using xming to access ubuntu server from windows 10 to use matlab there. I have successfully accessed and open matlab there and can run the written m-filefor one time but I could not edit the existing or create new m-file. What wrong I am doing here and how can I fix it?
13 Comments
Walter Roberson
on 29 Sep 2018
Is this like a permission problem? Are you saying that you cannot invoke the editor, or that the editor fails to respond to your characters, or that you are able to edit but you are not able to save the result ?
Shakir Hussain
on 29 Sep 2018
I could not edit or create m-file. I am not sure whether it is permission issue or something else. Yesterday I did edit m-file just for one time.
Walter Roberson
on 29 Sep 2018
If you go to the command line and give the command
edit help
then does it bring up the source for help() ? Does it produce an error message?
Which directory are you in when you try to create a file?
Shakir Hussain
on 30 Sep 2018
Yes
edit help
Bring up the help() source and it is not producing any error. For directory, the server manager of our school has specified a partition for me which is like name/home/...
Walter Roberson
on 30 Sep 2018
If you cd to your home directory, and invoke
edit
then can you type in some code? If you can, then what happens when you ask to save the file?
Shakir Hussain
on 30 Sep 2018
Edited: Shakir Hussain
on 30 Sep 2018
I did cd to my directory and can write and save m.file for one time but could not edit is again. When I tried to edit the name of m.file or codes inside it then I do not see a cursor and could not edit even I can select it.
Walter Roberson
on 30 Sep 2018
I think you will probably need to contact Mathworks Support for free installation assistance on this one.
Shakir Hussain
on 1 Oct 2018
Edited: Shakir Hussain
on 1 Oct 2018
Thanks for your valuable comments. By the way what is the normal way to edit create and mfile on ubuntu server?
Walter Roberson
on 1 Oct 2018
The normal way at least used to be to xsh or equivalent to the server, have X display back to the client.
Shakir Hussain
on 1 Oct 2018
Yes, I am using xming with putty to get access and display of ubuntu server on windows 10. This time edit mfile allowed me to edit for one time after that again the same issue. I guess the issue is something either related to server or matlab itself.
Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)