フィルターのクリア

App Designer: Display content of a txt file on a text area

22 ビュー (過去 30 日間)
Alessandro Togni
Alessandro Togni 2021 年 2 月 15 日
コメント済み: Vladimir Kovalev 2022 年 4 月 3 日
Hi,
the GUI i'm currently working on read a 2-columns file from txt and i want to show those values (numeric) on a text area mantining the columns separated.
Any suggestion will be very appreciated,
thank you.
Alessandro

回答 (1 件)

Mario Malic
Mario Malic 2021 年 2 月 15 日
Hello,
Try this and see if the output is correct.
app.TextString = fileread('file.txt');
app.TextArea.Value = app.TextString;

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by