Guest User

Untitled

a guest
Apr 1st, 2021
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×