result_2 = dec2bin(app.IngreseunnumeroEditField.Value);
You say that works, but for that to work, IngreseunnumeroEditField must be returning a numeric value not text
result_1 = bin2dec(app.IngreseunnumeroEditField.Value);
The exact same field is being used, but for bin2dec to function it must be passed a character vector, but we established above it is numeric instead.
You need to make the edit field text instead of numeric, and for the dec2bin case, str2double the text before passing it in.
Do not take the route of instead converting the numeric value to text to pass into bin2dec: if you do that then you will fail if the user enters more than 16 bits.
