Solved


Calculate time taken by light to reach earth surface
We know the time(seconds) taken by light to reach surface of earth. What if the distance varies yearly or source of light moves ...

2 years ago

Solved


Array Height (no usage of size)
Find the array height, the number of rows. Size may not be used.

2 years ago

Solved


Array Width (no usage of size)
Find the array width. Size may not be used.

2 years ago

Solved


Determine if input is greater than 100
Evaluate if given number is greater than 100. If greater, return true; else, return false.

2 years ago

Solved


Find the surface area of a cone.
For instance, Given r (radius) = 3, and s (slant height) = 5: surface area should be 94.

2 years ago

Solved


Determine if input is greater than pi
Evaluate if given number is greater than pi. If greater, return true; else, return false.

2 years ago

Solved


Find cross product of 2 vectors
Find cross product of 2 vectors

2 years ago

Solved


Find sum of alternate numbers in a vector
Find sum of alternate numbers in a vector starting from index 1

2 years ago

Solved


Can the given sides form a triangle?
Can the three given sides form a triangle?

2 years ago

Solved


How to calculate the length of a triangle's side given two angles and one side
You are given a triangle with angles alpha, beta and gamma and sides a opposite alpha, b opposite beta and c opposite gamma. ...

2 years ago

Solved


Binary
Given a positive, integer n, create a function that returns the respective binary number in the form of a vector. Example: ...

2 years ago

Solved


Binary Coder
Take an input number and print the binary value of this number.

2 years ago

Solved


Convert binary numbers array into array of decimal numbers.
Convert binary numbers array into array of decimal numbers. Example x=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ;...

2 years ago

Solved


Pi Estimate 2
Estimate Pi as described in the following link: http://www.people.virginia.edu/~teh1m/cody/Pi_estimation2.pdf

2 years ago

Solved


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

2 years ago

Solved


Spherical Volume
Calculate the volume of a sphere.

2 years ago

Solved


Shorten pathname
Given a pathname string, return a condensed version by replacing intermediate folders with '..'. *Example* If fullpat...

2 years ago

Solved


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

2 years ago

Solved


Legend of Zelda - Rupee Count (Compact)
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that Link's...

2 years ago

Solved


Adding Cells with numbers defined as strings
Given a cell, with strings representing numbers, add each value. For example: a = {'9','33'}; the output should be: ...

2 years ago

Solved


Is the paranthesis sequence balanced ?
Quantum mechanics and computer science are interested in bra-kets. Today however you, the player, will have to write a function ...

2 years ago

Solved


most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

2 years ago

Solved


Make a list string
Given a cell string, produce a string separating the items with spaces and commas and with an 'and' preceding the final item, an...

2 years ago

Solved


Alternately upper-lower case
Modify the string to alternate between upper and lower case. For example, s='achyuta' output='AcHyUtA' Update - Test case...

2 years ago

Solved


NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

2 years ago

Solved


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

2 years ago

Solved


Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

2 years ago

Solved


How many digits are there?
Input(s) - any string Output(n) - number of digits within string s

2 years ago

Solved


Concatenate strings
concatenate a variable number of input strings to produce one outputstring

2 years ago

Solved


Sum My Indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

2 years ago

Load more