A résolu


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 ...

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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. ...

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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 ;...

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


Spherical Volume
Calculate the volume of a sphere.

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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...

environ 2 ans il y a

A résolu


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...

environ 2 ans il y a

A résolu


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: ...

environ 2 ans il y a

A résolu


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 ...

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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...

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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...

environ 2 ans il y a

A résolu


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...

environ 2 ans il y a

A résolu


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...

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


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...

environ 2 ans il y a

Charger plus