TAILIEUCHUNG - matlab_toan_tap_9

Tham khảo tài liệu 'matlab_toan_tap_9', kỹ thuật - công nghệ, điện - điện tử phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Simpo PDF Merge and Split Unregistered Version - http 81 H1 help line P LOAN A R M computes the monthly payment on a loan amount of a having an annual intereat rate of R to be paid off in equal amounts over M months. P S LOAN A R M also returns an amortization table S which is an M-by-4 matrix where S 1 Payment Number S 2 Remaining Balance S 3 Interest Paid and S 4 Principle Paid. If no output arguments are provided the table is displayed. Start with some error checking if nargin 3 error Three input argument are required. end if fix m m error Number of Months Must be Integer. end Now calculate rm r 100 12 p a rm 1 rm Am 1 rm Am-1 Monthly interest rate payment required if nargout 1 P p return end B zeros m 1 Ip B Pr B for i 1 m if i 1 done if only payment is required. copy out into output variable storage for balance remaining per month storage for interest paid per month storage for principal paid per month creat table data compute interest when balance is orginnal amout Ip i rm a else balance is B i-1 Ip i rm B i-1 end Pr i p-Ip i principal paid this month if i 1 compute balance remainig after payment B i a-Pr i else B i B i-1 -Pr i end end B abs B 0 set near zero balance to zero s 1 m B Ip Pr if nargout 0 display table disp Amount num2str a disp Interest rate num2str r Simpo PDF Merge and Split Unregistered Version - http 82 disp Number of month int2str m disp Payment num2str p disp disp Amortization Schedule disp Payment Balance Interest Principle fprintf n s better formatting else two output arguments requested P p S s end Ví dụ Giải mã màu trên các điển trở Vấn đề Giá trị của một điện trở dùng trong mạch điện được tính thông qua các vạch màu in trên thân của nó. Đối với một điện trở với độ chính xác là 5 thì có 3 dải màu tạm gọi là A B C. Giá trị số được gán cho mỗi màu được tính như sau Màu Đen Nâu Đỏ Vàng Lục Lam Tràm Tím Xám Trắng Giá trị 0 1 2 3 4 5 6 7 8 9 Nếu A B C là các giá trị của các màu

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.