make a GUI in matlab

2 ビュー (過去 30 日間)
raviranjan singh
raviranjan singh 2018 年 5 月 7 日
コメント済み: raviranjan singh 2018 年 5 月 8 日
the problem is to read the text from those files, show it on screen under respective heading and allow the user to change the same. Once values are modified, after clicking ok modified value to be overwritten in respective files.
pls suggest the code for this problem.

採用された回答

Jan
Jan 2018 年 5 月 7 日
This is exactly what Matlab's editor does already. Why do you want to re-create such a standard tool?
But if you really want to do this, what does "show it on screen under respective heading" mean? A uitabgroup? While it is not very complicated to create such a tab group and add some buttons for loading and saving, this is a tedious work. Try to start writing a solution and ask a specific question.
  7 件のコメント
Jan
Jan 2018 年 5 月 8 日
This is a problem of Notepad. All other editors can handle \n as line break reliably, but Notepad requires \r\n. Replace it by a smarter editor like WordPad or Notepad++. But if you really want to use this darn old poor editor, replace:
fprintf(fid, '%s\n', cstr{:})
by
fprintf(fid, '%s\r\n', cstr{:})
or open the file in text mode by:
[fid, msg] = fopen(FileName, 'wt')
I'd prefer to omit Notepad.
raviranjan singh
raviranjan singh 2018 年 5 月 8 日
thanks. it works properly.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by