how to display results in matlab gui (text)
33 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I want to display the results shown in command window by clicking push button. I mean, I created a function and when I run that function the results are shown in matlab command window. Now I am making an interface with matlab gui and want to show that result in a new figure by clicking push button. How can I do that?
Thanks..
1 件のコメント
Jan
2014 年 2 月 28 日
It depends on how the the results whould appear in the GUI. Do you want to populate a text field?
回答 (2 件)
Jorge
2014 年 4 月 14 日
編集済み: per isakson
2015 年 7 月 6 日
Hi, this solved the problem for me,
clc;
diary('example')
diary on;
%COMMANDS YOU WANT TO BE SHOWN IN THE COMMAND WINDOW
disp(array);
pretty(function);
%&THEN
diary off;
output=fileread('example');
%FINALLY
set(handles.editbox1,'string',output);
delete('example');%OPTIONAL
%END
I hope this was helpful, Good Luck.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!