How to creat and edit m-file on linux server?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2018-9-29
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
2018-9-29
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
2018-9-29
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
2018-9-30
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
2018-9-30
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
2018-9-30
编辑:Shakir Hussain
2018-9-30
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
2018-9-30
I think you will probably need to contact Mathworks Support for free installation assistance on this one.
Shakir Hussain
2018-10-1
编辑:Shakir Hussain
2018-10-1
Thanks for your valuable comments. By the way what is the normal way to edit create and mfile on ubuntu server?
Walter Roberson
2018-10-1
The normal way at least used to be to xsh or equivalent to the server, have X display back to the client.
Shakir Hussain
2018-10-1
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)