How to display the function as transposed in Matlab GUI's static text
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
Hello Matlab Central,
I am working on Matlab's GUI for creating seventh degree function's values. When I use button called "Fonksiyonu oluştur" the function lists down-line but I want to write my function's value from left to right. How can I modify my codes? Can you help me?
F=[1 1 1 1 1 1 1 1];
F(1,1) = a.*F(1,1);
F(1,2) = b.*F(1,2);
F(1,3) = c.*F(1,3);
F(1,4) = d.*F(1,4);
F(1,5) = e.*F(1,5);
F(1,6) = f.*F(1,6);
F(1,7) = g.*F(1,7);
F(1,8) = h.*F(1,8);
Fo=transpose(F);
set(handles.text23,'String',Fo);
guidata(hObject, handles);
0 件のコメント
採用された回答
Walter Roberson
2013 年 6 月 3 日
set(handles.text23, 'String', num2str(F));
2 件のコメント
Walter Roberson
2013 年 6 月 4 日
Your code appears to be the same except using a temporary variable, and using handles.text35 instead of handles.text23 (which is the fieldname you used in your Question)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!