필터 지우기
필터 지우기

How to display the function as transposed in Matlab GUI's static text

조회 수: 1 (최근 30일)
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);

채택된 답변

Walter Roberson
Walter Roberson 2013년 6월 3일
set(handles.text23, 'String', num2str(F));
  댓글 수: 2
Runo Insan
Runo Insan 2013년 6월 4일
Thank you first. But copy-pasting this code is not enough and also Matlab indicates an error. But, Thanks my codding informations. I did it with your help. Thank you. Teşekkür ederim.
...
F(1,7) = g.*F(1,7);
F(1,8) = h.*F(1,8);
_*Fx=num2str(F);*_
set(handles.text35,'String',*_ Fx);_*
guidata(hObject, handles);
Walter Roberson
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 CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by