Dear All, while working for my university project, am bit stuck in the final steps of GUI. Have compiled a code for Huffman coding. what my requirement is to get input from user which i am able to by creating GUI and placing edit text. Also am able to get entered text.
f unction CODE_Callback(hObject, eventdata, handles)
data=get(hObject,'String');
Now i need help to communicate entered text (variable named as "data") with start button to run the complete program. and also to show final output on GUI (text based output)
function START_Callback(hObject, eventdata, handles)
huff (data);
-----%%%%%%-----------
disp(strcat('Entropy = ',num2str(entropy)));
disp(strcat('Average length = ',num2str(avglength)));
disp(strcat('Redundancy = ',num2str(redundancy)));
encseq=huffencode(huf,seq);
disp('Sequence :');
disp(seq);
disp('Encoded Sequence :');
disp(encseq);
decseq=huffdecode(huf,encseq);
disp('Decoded Sequence :');
disp(decseq);
(Want to display all output on GUI)
Urgent help will be highly appreciated. Thanks in advance.