Advertisement
Guest User

Untitled

a guest
Apr 1st, 2021
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. function calculate_interest_button_Callback(hObject, eventdata, handles)
  2. handles.loanAmtValue = loanAmtValue;
  3. handles.yearlyInterestRateValue = yearlyInterestRateValue;
  4. handles.mthlyPaymentValue = mthlyPaymentValue;
  5. guidata(hObject,handles);
  6.  
  7. function loan_amount_edittext_Callback(hObject, eventdata, handles)
  8. % Hints: get(hObject,'String') returns contents of loan_amount_edittext as text
  9. % str2double(get(hObject,'String')) returns contents of loan_amount_edittext as a double
  10. loanAmt = get(hObject,'string');
  11. loanAmtValue = str2double(loanAmt);
  12. handles.loanAmtValue = loanAmtValue;
  13. guidata(hObject,handles);
  14.  
  15. function y_interest_rate_edittext_Callback(hObject, eventdata, handles)
  16. % Hints: get(hObject,'String') returns contents of y_interest_rate_edittext as text
  17. % str2double(get(hObject,'String')) returns contents of y_interest_rate_edittext as a double
  18. yearlyInterestRate = get(hObject,'string');
  19. yearlyInterestRateValue = str2double(yearlyInterestRate);
  20. handles.yearlyInterestRateValue = yearlyInterestRateValue;
  21. guidata(hObject,handles);
  22.  
  23. function monthly_payment_edittext_Callback(hObject, eventdata, handles)
  24. % Hints: get(hObject,'String') returns contents of monthly_payment_edittext as text
  25. % str2double(get(hObject,'String')) returns contents of monthly_payment_edittext as a double
  26. mthlyPayment = get(hObject,'string');
  27. mthlyPaymentValue = str2double(mthlyPayment);
  28. handles.mthlyPaymentValue = mthlyPaymentValue;
  29. guidata(hObject,handles);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement