How to display checksum file into editext gui matlab?

1 view (last 30 days)
hi everyone, I wanna ask you how to display checksum (whatever kind of checksum) from file into edittext Gui matlab?
the progress are : 1. load file (for example txt file) using button open in gui 2. show location text file in edittext1 gui 3. show checksum text file in edittext2 gui
the step 1 & 2 was running properly, but not in step 3.
need your advice, many thanks

Accepted Answer

Walter Roberson
Walter Roberson on 21 Feb 2014
Edited: Walter Roberson on 21 Feb 2014
Calculate the checksum. typecast() the result as an vector of uint8(). hex2dec() that vector. Go back and restore the Question you edited out of existence about using checksums as someone else might have a use for the Question and Answer. Use the hex2dec() result as the String parameter of the uicontrol.
  1 Comment
Bakka
Bakka on 21 Feb 2014
Edited: Bakka on 21 Feb 2014
function btn_findfile_Callback(hObject, eventdata, handles)
[fileA location] = uigetfile({'*.txt'},'Browse file '); %show location file
if (fileA==0)
warndlg('You did not selected any file');
return
end
fileB=strcat(location,fileA);
set(handles.txt_fileloc, 'String', fileB); %display location file on textbox
here is my trial codes Sir, but I don't get it for display checksum in edittext1 on my fig . please let me know Mr.Walter

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!