I have a function that is supposed to read text fields from a pdf, then calls an mlapp, then call an mlapp, then enter text fields from pdf and outputs of the mlapp into a new entry in a SQL table. I create outputs of the mlapp in the SubmitButtonPushed function using the syntax
Example of how the code looks is below.
my_app_handle = manual_entry_app(textfrompdf1, textfrompdf2);
conn = database('breastMRdb','','');
newentry = table(textfrompdf1, textfrompdf2, outputfrommlapp)
However, when I call this function from the MATLAB Command Window like this
I get an error while creating newentry that variable outputfrommlapp doesn't exist. It is not an issue of the variable name being spelled wrong in the caller function createDBEntryFromPDF or in the mlapp. I thought the uiwait would resolve this issue, but it doesn't.
What else am I supposed to do so that outputfrommlapp can be added to the table in the 2nd to last line of the function without error?