open file in notepad via gui
古いコメントを表示
Hellow, i search a method to open a file in notepad or another simple txt reader from a gui. So my code generates a ascii file and if i push a button the file have to open notepad. my ascii file is: a = sinogram.sin;
if have found open('a');
but then it opens in matlab itself. Thx
採用された回答
その他の回答 (2 件)
Fiboehh
2011 年 4 月 21 日
3 件のコメント
Paulo Silva
2011 年 4 月 21 日
eval(['!notepad ' m])
Paulo Silva
2011 年 4 月 21 日
The way you call uigetfile is wrong
[FileName,PathName] = uigetfile('*.sin','Select the .sin-file')
eval(['!notepad ' PathName FileName])
Paulo Silva
2011 年 4 月 21 日
And another way for those who hate the eval function
system(['notepad ' PathName FileName])
Fiboehh
2011 年 4 月 21 日
1 件のコメント
Paulo Silva
2011 年 4 月 21 日
[FileName,PathName] = uigetfile('*.sin','Select the .sin-file')
if ischar(FileName)
%disp('file selected')
eval(['!notepad ' PathName FileName])
else
%disp('user canceled')
end
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!