100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Introduction to Programming with MATLAB - Coursera All Assignments & Quiz Answer $2.99   Add to cart

Exam (elaborations)

Introduction to Programming with MATLAB - Coursera All Assignments & Quiz Answer

1 review
 1628 views  3 purchases
  • Course
  • Institution

MATLAB as a Calculator - Output end_loan_of_first_year = 1100 new_interest = 110 We borrowed $1000 at a 10% annual interest rate. If we did not make a payment for two years, and assuming th Assign the result to a variable called debt. Lesson 1 Wrap-up 1. As of early 2018, Usain Bolt holds the worl...

[Show more]

Preview 4 out of 54  pages

  • December 13, 2020
  • 54
  • 2020/2021
  • Exam (elaborations)
  • Questions & answers

1  review

review-writer-avatar

By: ghoshsouvik188 • 3 year ago

avatar-seller
12/13/2020 MathWorks Learning Tool




MATLAB as a Calculator
We borrowed $1000 at a 10% annual interest rate. If we did not make a payment for two years, and assuming th
Assign the result to a variable called debt.




Script 

 Save  Reset  MATLAB Documentation (https://www.mathworks.com/help/)


1 money_borrowed=1000;
2
3 interest_rate=.10;
4
5 end_loan_of_first_year=(money_borrowed*interest_rate)+money_borrowed
6
7 new_interest=end_loan_of_first_year*interest_rate
8
9
10 debt=end_loan_of_first_year+new_interest


 Run Script 




Previous Assessment: All Tests Passed Submit 


 correct debt value?




Output

end_loan_of_first_year =

1100



new_interest =

110


https://learningtool.mathworks.com/launch 1/2

,12/13/2020 MathWorks Learning Tool



debt =

1210




https://learningtool.mathworks.com/launch 2/2

, 12/13/2020 Lesson 2 Wrap-up | Coursera



Lesson 2 Wrap-up
TOTAL POINTS 10



1. The value of a after this command: a = [0; 0; 1]' * [1 2 3; 4 5 6; 7 8 9] 1 point


[3 , 6 , 9]

[7, 8 , 9]

[3 ; 6 ; 9]

[7 ; 8; 9]




2. What will be the value of s after this command: A = [1:4; -2:2:5; 3 1 0 -1]; s = A(end- 1 point
1,end-1);

2

-1

0

We get an error message.




3. Which of the following is a valid variable name? 1 point


All of the options above are invalid.

5x2x3x

MATLAB_Rulez!

I_Hate_This_Quiz_So_Much




4. After this command: v = 111:-11:1; how many elements will v have? 1 point


11



https://www.coursera.org/learn/matlab/exam/24JUA/lesson-2-wrap-up/attempt 1/3

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller CourseHeroes. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $2.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

85169 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$2.99  3x  sold
  • (1)
  Add to cart