Community Profile

photo

Jaime Martinez


Active since 2016

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


How would I write a function code that finds gcd in a pair of numbers?
[gcd] = myGCD(a,b)

8 years ago | 1 answer | 0

1

answer

Question


How can i create a code using forloop to count the amount of times a character appears in a word?
For example, if I have the word "Last Name" and I want to know how many times the letter "a" appears, but I want the response to...

8 years ago | 1 answer | 0

1

answer

Question


How do I write a function with the header shown in picture that, when given a vector of numbers, nums, creates a vector newNums containing every other element of the original vector, starting with the first element?
<</matlabcentral/answers/uploaded_files/44275/Screen%20Shot%202016-01-28%20at%2012.00.18%20PM.png>> I'm trying to write a fun...

8 years ago | 1 answer | 0

1

answer