hello guys, Am making a matlab GUI and i want the results to appear in a vertical format on a static textbox. This is my code
k = 15; n = 1;while k > n q = mood(k,2); if q == 0 k = k / 2; else k = (k * 3) + 1; end for answer = k %This format should display on my textbox
%disp(answer); %does not show on static textbox.
set(handles.mytext, 'String', answer) endend
I want the results to appear like this in a static textbox
k = 15 46 23 70 35 106 53 160 80 40 20 10 5 16 8 4 2 1 But the above code display only the last value. Thanks in advance
Best Answer