필터 지우기
필터 지우기

How to Display the code on Edit Text in GUI

조회 수: 1 (최근 30일)
Chandra Shekhar
Chandra Shekhar 2013년 7월 5일
Hello Everyone,
I need to display the my entire MATLAB code on edit text in GUI.
I have tried like this
conn = database('codeDSN', '', '');
curs2 = exec(conn, ['select * from codemaster, codes where codemaster.id = codes.id and codes.id =1']);
curs2 = fetch(curs2);
cidxh = curs2.Data;
for i = 1 : size(cidxh,1)
set(handles.edit1, 'String', cidxh{i,4});
end
It is displaying only last line in the code and that to in middle of the Edit Text window.
Please any one suggest me how to display all the codes and in the order(left side of the window).
thanks in advance

채택된 답변

Walter Roberson
Walter Roberson 2013년 7월 5일
No loop and just
set(handles.edit1, 'String', cidxh);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by