How to display checksum file into editext gui matlab?

2 visualizaciones (últimos 30 días)
Bakka
Bakka el 21 de Feb. de 2014
Editada: Bakka el 21 de Feb. de 2014
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Feb. de 2014
Editada: Walter Roberson el 21 de Feb. de 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 comentario
Bakka
Bakka el 21 de Feb. de 2014
Editada: Bakka el 21 de Feb. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by