Under Grad. Student of Water Resources Engineering.

Solved

Capitalized string operations

Convert the input sentence to upper case and replace all vowels with an underscore ('_')

19 hours ago

Solved

Percentage of zeros in a matrix of only 1s and 0s

Write a function called _zero_stat_ that takes a matrix as an input that only has 0 and 1 elements. The function needs to comput...

19 hours ago

Solved

convert the number to binary format & count digits

Convert the given number to the corresponding binary format and count the number of digits in that binary number

19 hours ago

Solved

find number of times of occurrence of the most frequent number in a row vector

In a given row vector, find the number of times a mode of a row vector has occurred example: in [2 5 5 5 5 3], output is 4 ...

19 hours ago

Solved

Check if there are white spaces in the input string

If there are white spaces in the input string, output=1 else 0

20 hours ago

Solved

ASCII sum of phrases

Find the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', th...

20 hours ago

Solved

generate capital english alphabets

Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...

20 hours ago

Solved

Repetition of matrices

*A is a bold matrix: [1 2 3; 4 5 6;7 8 9]* Given an integer 'n' , a matrix B exists such that has n copies of A in the row an...

20 hours ago

Solved

Product of all elements in an array

Compute the product of all elements in an array.

20 hours ago

Solved

surface areas of a cylinder

There are 3 inputs: option, radius and height. If option= '1', compute the lateral surface area of the cylinder, for option 2 ca...

20 hours ago

Solved

count upper and lower case characters

In a given input string, count and return the number of upper and lower case characters as u and l respectively. For example:...

20 hours ago

Solved

Reverse the input

Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

20 hours ago

Solved

Insert Special character in character cell array.

input={'a','b','c'} then ans={'a','*','b','*','c'}

20 hours ago

Solved

Deleting Specific part.

if input is x= { /*[0..10]*/ 0, 11, 21, 31, 41, 55, 50, 10, 810, 9.10, /*[10...25]*/ 100, 110, 120, 130, 140, 255 ...

20 hours ago

Solved

Replace Negative(-) by 0 and positive by 1

In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

20 hours ago

Solved

Speed of car travelling x meters in y seconds

What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

21 hours ago

Solved

Generate the Matrix!

Given n, generate the following matrix: a = [ n n-1 n-2 ... 2 1; n-1 n-1 n-2 ... 2 1; n-2 n-2 n-2 ... 2 1;...

21 hours ago

Solved

Angle between Two Vectors

The dot product relationship, a dot b = | a | | b | cos(theta), can be used to determine the acute angle between vector a and ve...

5 days ago

Solved

Circumscribed circles

Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

5 days ago

Solved

Additive persistence

Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

5 days ago

Solved

Converting numbers back from extended form

Thanks for all the help you guys gave me on writing out the numbers in extended form in <http://www.mathworks.com/matlabcentral/...

5 days ago

Solved

Decode a simplified barcode

Given a bar code from this <http://www.mathworks.com/matlabcentral/cody/problems/602-make-a-simplified-bar-code exercise>: Re...

5 days ago

Solved

Sorting integers by their digits (Level 3)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42811-sorting-integers-by-their-digits-level...

7 days ago

Solved

Sorting integers by their digits (Level 2)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42809-sorting-integers-by-their-digits Probl...

7 days ago

Solved

Sorting integers by their digits (Level 1)

Given a vector, v, of positive integers, return a vector, w, by sorting v in ascending order, such that primary sorting is done ...

7 days ago

Solved

Convert from Base 10 to base 5

Convert the input number from base 10 into base 5: for example: if a(in base 10)= 5 then a(in base 5)= 10

10 days ago

Solved

Add a row of zeros on top of a matrix

Given a matrix, insert a row of zeros as the top row.

10 days ago

Solved

Kaprekar numbers

Test if the input is a Kaprekar number: <http://mathworld.wolfram.com/KaprekarNumber.html>. Return a logical true or false. ...

12 days ago

Solved

So many choices

For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

12 days ago