AN INSTRUCTOR’S SOLUTIONS MANUAL TO ACCOMPANY
ESSENTIALS OF MATLAB® PROGRAMMING, THIRD EDITION STEPHEN J. CHAPMAN
NOTE: UNDER NO CIRCUMSTANCES MAY THIS MATERIAL OR ANY PORTION THEREOF BE SOLD, LICENSED, AUCTIONED, OR OTHERWISE REDISTRIBUTED EXCEPT AS MAY BE PERMITTED BY THE LICENSE TERMS HEREIN.
READ IMPORTANT LICENSE INFORMATION Dear Professor or Other Supplement Recipient: Cengage Learning has provided you with this product (the “Supplement”) for your review and, to the extent that you adopt the associated textbook for use in connection with your course (the “Course”), you and your students who purchase the textbook may use the Supplement as described below. Cengage Learning has established these use limitations in response to concerns raised by authors, professors, and other users regarding the pedagogical problems stemming from unlimited distribution of Supplements. Cengage Learning hereby grants you a nontransferable license to use the Supplement in connection with the Course, subject to the following conditions. The Supplement is for your personal, noncommercial use only and may not be reproduced, posted electronically or distributed, except that portions of the Supplement may be provided to your students IN PRINT FORM ONLY in connection with your instruction of the Course, so long as such students are advised that they may not copy or distribute any portion of the Supplement to any third party. Test banks and other testing materials may be made available in the classroom and collected at the end of each class session, or posted electronically as described herein. Any material posted electronically must be through a password-protected site, with all copy and download functionality disabled, and accessible solely by your students who have purchased the associated
textbook for the Course. You may not sell, license, auction, or otherwise redistribute the Supplement in any form. We ask that you take reasonable steps to protect the Supplement from unauthorized use, reproduction, or distribution. Your use of the Supplement indicates your acceptance of the conditions set forth in this Agreement. If you do not accept these conditions, you must return the Supplement unused within 30 days of receipt. All rights (including without limitation, copyrights, patents, and trade secrets) in the Supplement are and will remain the sole and exclusive property of Cengage Learning and/or its licensors. The Supplement is furnished by Cengage Learning on an “as is” basis without any warranties, express or implied. This Agreement will be governed by and construed pursuant to the laws of the State of New York, without regard to such State’s conflict of law rules. Thank you for your assistance in helping to safeguard the integrity of the content contained in this Supplement. We trust you find the Supplement a useful teaching tool.
INSTRUCTOR'S SOLUTIONS MANUAL TO ACCOMPANY
Essentials of MATLAB Programming Third Edition
STEPHEN J. CHAPMAN BAE Systems Australia
®
Contents Preface ..................................................................................................................................i Chapter 1............................................................................................................................. 1 Chapter 2............................................................................................................................. 5 Chapter 3........................................................................................................................... 33 Chapter 4........................................................................................................................... 59 Chapter 5........................................................................................................................... 79 Chapter 6......................................................................................................................... 129 Chapter 7......................................................................................................................... 183 Chapter 8......................................................................................................................... 229 Chapter 9......................................................................................................................... 269
I’ll expand on the topics related to "Taxation of Business Entities," providing a more detailed exploration. This overview will cover fundamental concepts, applications, and implications relevant to the study of business taxation.---### Overview of Business Entities#### 1. Types of Business EntitiesBusiness entities can be categorized based on ownership structure and tax treatment. Understanding these types is crucial for determining tax obligations and benefits.- **Sole Proprietorships**: - Owned by a single individual, this is the simplest form of business entity. Income is reported on the owner’s personal tax return (Form 1040, Schedule C), which simplifies tax filing but also means personal liability for debts and obligations.- **Partnerships**: - Consisting of two or more individuals, partnerships do not pay federal income taxes. Instead, they are considered pass-through entities, meaning income is taxed at the partners' individual rates. Form 1065 is used to report partnership income, while partners receive Schedule K-1 to report their share on their returns.- **Corporations**: - Corporations are separate legal entities that provide limited liability protection to their owners (shareholders). C-Corporations face double taxation: once at the corporate level on profits and again at the individual level when dividends are distributed. S-Corporations, on the other hand, are pass-through entities but have restrictions on ownership and number of shareholders.- **Limited Liability Companies (LLCs)**: - LLCs combine the flexibility of partnerships with the liability protection of corporations. An LLC can choose to be taxed as a sole proprietorship, partnership, or corporation, allowing for strategic tax planning. ### 2. Tax Implications of Each Entity TypeUnderstanding the tax implications of each entity type is critical for effective business planning.- **Sole Proprietorships**: - Income is taxed at the owner’s individual tax rate. All profits and losses are reported on the owner’s tax return. This simplicity, however, can expose owners to significant personal risk.- **Partnerships**: - Each partner reports their share of income and losses on their personal returns, allowing for loss deductions. Partners are also subject to self-employment taxes on their share of the income, which can significantly impact tax liability.- **Corporations**: - C-Corporations are taxed at the corporate tax rate (currently 21%). Dividends are taxed again at the shareholder level. S-Corporations avoid double taxation, but there are restrictions on the number and type of shareholders.- **Limited Liability Companies (LLCs)**: - By default, single-member LLCs are treated as sole proprietorships for tax purposes, while multi-member LLCs are treated as partnerships. However, they can elect to be taxed as a corporation if beneficial.### Key Tax Concepts#### 1. Income RecognitionIncome recognition is a fundamental principle in taxation, determining when income must be reported.- **Cash vs. Accrual Accounting**: - Businesses can choose between cash and accrual methods. Cash accounting recognizes income when received and expenses when paid, making it straightforward. Accrual accounting recognizes income when earned and expenses when incurred, aligning revenue with the period it relates to, but can complicate cash flow management.#### 2. DeductionsDeductions reduce taxable income, directly impacting tax liability.- **Ordinary and Necessary Expenses**: - The IRS allows deductions for expenses that are ordinary (common in the industry) and necessary (helpful and appropriate for the business).
2.
MATLAB Basics
2.1
(a) The size of array1 is 4 5. (b) The value of array1(1,4) is -3.5. (c) array1(:,1:2:5) is a 4 3 array consisting of the first, third, and fifth columns of array1: >> array1(:,1:2:5) ans = 0 2.1000 0 -6.6000 2.1000 0.3000 1.1000 0
6.0000 3.4000 1.3000 -2.0000
(d) array1([1 3],end) consists of the elements in the first and third rows on the last column of array1: » array1([1 3],end) ans = 6.0000 1.3000
2.2
(a) Legal (b) Illegal—names must begin with a letter. (c) Legal (d) Illegal—names must begin with a letter. (e) Illegal—the apostrophe and the question mark are illegal characters.
2.3
(a) This is a three element row array containing the values 2, 5, and 8: » a = 2:3:8 a = 2 5
8
(b) This is a 3 3 element array containing three identical columns: » b = [a' a' a'] b = 2 2 2 5 5 5 8 8 8
(c) This is a 2 2 element array containing the first and third rows and columns of b: » c = b(1:2:3,1:2:3) c = 2 2 8 8
(d) This is a 1 3 row array containing the sum of a (= [2 5 8]) plus the second row of b (= [5 5 5]): » d = a + b(2,:) d = 7 10 13
5