Package deal
5 Matlab Cody Problems Vol 2
Problems 13 , 22 , 28 , 37 and 105 with full functional code . Just copy and paste to the provided links and complete the problems mentioned above!
[Show more]Problems 13 , 22 , 28 , 37 and 105 with full functional code . Just copy and paste to the provided links and complete the problems mentioned above!
[Show more]

Given an integer n >= 0, generate the length n 1 row vector representing the n-th row of Pascal's Triangle.

Examples:

 pascalTri(0)
 ans =
 1

 pascalTri(1)
 ans =
 1 1

 pascalTri(2)
 ans =
 1 2 1


Preview 1 out of 2 pages
Add to cart

Given an integer n >= 0, generate the length n 1 row vector representing the n-th row of Pascal's Triangle.

Examples:

 pascalTri(0)
 ans =
 1

 pascalTri(1)
 ans =
 1 1

 pascalTri(2)
 ans =
 1 2 1


Problem 105. How to find the position of an element in a vector without using the find function
Created by Chelsea in Community

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

Examples:

 findPosition([1 3 5 4 2], 2)
 posX is 5

 findPosi...
Preview 1 out of 2 pages
Add to cartProblem 105. How to find the position of an element in a vector without using the find function
Created by Chelsea in Community

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

Examples:

 findPosition([1 3 5 4 2], 2)
 posX is 5

 findPosi...
Problem 28. Counting Money

Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99.

Example:

 Input a = {'$12,001.87','$0.04','$12,003,887.55','$0.32'};
 Output b is 12015889.78


Preview 1 out of 2 pages
Add to cartProblem 28. Counting Money

Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99.

Example:

 Input a = {'$12,001.87','$0.04','$12,003,887.55','$0.32'};
 Output b is 12015889.78


Problem 22. Remove the vowels
Created by Cody Team in Cody Challenge 
Remove all the vowels in the given phrase.
Example:
 Input s1 = 'Jack and Jill went up the hill'
 Output s2 is 'Jck nd Jll wnt p th hll'

Preview 1 out of 2 pages
Add to cartProblem 22. Remove the vowels
Created by Cody Team in Cody Challenge 
Remove all the vowels in the given phrase.
Example:
 Input s1 = 'Jack and Jill went up the hill'
 Output s2 is 'Jck nd Jll wnt p th hll'

Problem 13. Remove all the consonants
Created by Cody Team in Cody Challenge 
Remove all the consonants in the given phrase.
Example:
 Input s1 = 'Jack and Jill went up the hill'; 
 Output s2 is 'a a i e u e i';

Preview 1 out of 2 pages
Add to cartProblem 13. Remove all the consonants
Created by Cody Team in Cody Challenge 
Remove all the consonants in the given phrase.
Example:
 Input s1 = 'Jack and Jill went up the hill'; 
 Output s2 is 'a a i e u e i';

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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!
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
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.
Stuvia is a marketplace, so you are not buying this document from us, but from seller nick1982. Stuvia facilitates payment to the seller.
No, you only buy these notes for $25.49. You're not tied to anything after your purchase.
4.6 stars on Google & Trustpilot (+1000 reviews)
91937 documents were sold in the last 30 days
Founded in 2010, the go-to place to buy study notes for 14 years now