How to display checksum file into editext gui matlab?

3 ビュー (過去 30 日間)
Bakka
Bakka 2014 年 2 月 21 日
編集済み: Bakka 2014 年 2 月 21 日
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 Center および File ExchangeFile Operations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by