How to display checksum file into editext gui matlab?

1 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2014-2-21
编辑:Walter Roberson 2014-2-21
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 个评论
Bakka
Bakka 2014-2-21
编辑:Bakka 2014-2-21
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by