How to display checksum file into editext gui matlab?

조회 수: 1 (최근 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 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