Community Profile # Rohit Pappu

### MathWorks

Last seen: 10 días ago Active since 2020

Programming Languages:
C++, Javascript

#### Statistics

All
• • • • • • • • • #### Content Feed

View by

Solved

Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

alrededor de 1 mes ago

Solved

Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

alrededor de 1 mes ago

Solved

Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

9 meses ago

Solved

Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

9 meses ago

Solved

Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

9 meses ago

Solved

Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

9 meses ago

Solved

Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

9 meses ago

Solved

Sum of series VIII

9 meses ago

Solved

Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

9 meses ago

Solved

Sum of series IX

9 meses ago

Solved

Generate pi using logarithm
Generate pi using logarithm

10 meses ago

Solved

Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

10 meses ago

Solved

Area of a circle
Find the value for area of the circle if diameter is given

10 meses ago

Solved

Filter AC, pass DC
Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

10 meses ago

Solved

Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

10 meses ago

Solved

Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

10 meses ago

Solved

Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

10 meses ago

Solved

Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

10 meses ago

Solved

Is the Point in a Circle?
Check whether a point or multiple points is/are in a circle centered at point (x0, y0) with radius r. Points = [x, y]; c...

10 meses ago

Solved

Calculate the sum of two numbers. Example input = [2 3] output = 5

10 meses ago

Solved

find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

10 meses ago

Solved

Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

10 meses ago

Solved

Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

10 meses ago

Solved

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

10 meses ago

Solved

Number of Circles in a Number
Given a number, return the number of closed 'circles' in the base 10 numerical representation. Note: the number 4 has no circ...

10 meses ago

Solved

Square a Number
Given an input x, return y, which is equal to the square of x.

10 meses ago

Solved

Generate Square Wave
Generate a square wave of desired length, number of complete cycles and duty cycle. Here, duty cycle is defined as the fraction ...

10 meses ago

Solved

Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

10 meses ago

Solved

Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

10 meses ago

Solved

Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

10 meses ago