Community Profile

# srujan reddy

137 2015 年以降の合計貢献数

#### srujan reddy's バッジ

Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

3年以上 前

Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

3年以上 前

Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

3年以上 前

Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

3年以上 前

Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

3年以上 前

Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

3年以上 前

Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

4年弱 前

Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x example: x = [1 2 3; 4 5 6]; output [1;4];

4年弱 前

What percentage?
Calculate the output c as the percentage of a on b for given a and b.

4年弱 前

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

4年弱 前

Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

4年弱 前

Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

4年弱 前

y equals x divided by 2
function y = x/2

4年弱 前

Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

4年弱 前

Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

4年弱 前

What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

4年弱 前

Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

4年弱 前

Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

4年弱 前

Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

4年弱 前

only input
Return the output without writing any code into the function.

4年弱 前

Concatenate two strings
Its very easy. Just concatenate two strings.

4年弱 前

kmph to mps
convert kilometer per hour to meter per second

4年弱 前

Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

4年弱 前

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

4年弱 前

Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

4年弱 前

Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

4年弱 前

Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

4年弱 前

matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

4年弱 前

Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

4年弱 前

Matlab Basics II - Velocity of a particle
A particle is moving in space, such that it's velocity is given by: <<http://s30.postimg.org/5rf1xtvj5/cody1.png>> write a...

4年弱 前