문제를 풀었습니다


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

8년 초과 전

문제를 풀었습니다


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

8년 초과 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

8년 초과 전

답변 있음
Compute the product of the next n elements in matrix
This should work. has been tested and refined: function B = maxproduct(A,n) % After checking that we do not have to retu...

8년 초과 전 | 1

답변 있음
How can I solve this problem?
This should work perfectly: function mul = smallest_multiple(n) facts = zeros(1,n); % store the exponents ...

8년 초과 전 | 2

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

8년 초과 전

답변 있음
Write a function called digit_counter that takes the name of a text file as input and returns the number of digits (i.e., any of the characters, 0-to-9) that the file contains. If there is a problem opening the file, the function returns -1.
This should definitely work: %function: digit_counter in a file; takes file name as argument function dc = digit_counter(f...

8년 초과 전 | 0

답변 있음
Hey Guys can you help me with that.
I think this is the most elegant solution that takes care of all exceptions. Apologies if it has been covered in the past: ...

8년 초과 전 | 1