Community Profile

# HARISANKAR PS

### NIT TRICHY

36 total contributions since 2012

Doing M.Tech in VLSI Systems
1.5 year experience in matlab model based design
B.Tech in Electronics and communication Engineering

Professional Interests: VLSI design,HDL coding,Model Based Designing

View details...

Contributions in
View by

Solved

Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

mehr als 7 Jahre ago

Solved

Generate pi using logarithm
Generate pi using logarithm

mehr als 7 Jahre ago

Problem

Generate pi using logarithm
Generate pi using logarithm

mehr als 7 Jahre ago | 2

Problem

Find the solution of algebraic equation
Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0;...

mehr als 7 Jahre ago | 0

Solved

Identify the heavier bag
There are N=2^n bags of rice looking alike, N-1 of which have equal weight and one is slightly heavier. The weighing balance is ...

mehr als 7 Jahre ago

Problem

Identify the heavier bag
There are N=2^n bags of rice looking alike, N-1 of which have equal weight and one is slightly heavier. The weighing balance is ...

mehr als 7 Jahre ago | 0

Solved

Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

mehr als 7 Jahre ago

Problem

Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

mehr als 7 Jahre ago | 0

Solved

Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

mehr als 7 Jahre ago

Solved

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

mehr als 7 Jahre ago

Solved

Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

mehr als 7 Jahre ago

Solved

Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

mehr als 7 Jahre ago

Solved

Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

mehr als 7 Jahre ago

Problem

RMS value from a set of observations
Find rms value of a set of observations of a physical quantity? Hint: The observations are accessed in the form of vectors

mehr als 7 Jahre ago | 0

Solved

Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples : n=2, A=[1 2 3] -> [1 1 2 2 3 3] n=0...

mehr als 7 Jahre ago

Solved

Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

mehr als 7 Jahre ago

Solved

given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

mehr als 7 Jahre ago

Solved

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

mehr als 7 Jahre ago

Solved

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

mehr als 7 Jahre ago

Solved

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.

mehr als 7 Jahre ago

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

mehr als 7 Jahre ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

mehr als 7 Jahre ago

Solved

Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

mehr als 7 Jahre ago

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

mehr als 7 Jahre ago

Solved

Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

mehr als 7 Jahre ago

Problem

Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

mehr als 7 Jahre ago | 0

Solved

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

mehr als 7 Jahre ago

Solved

Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

mehr als 7 Jahre ago

Solved

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

mehr als 7 Jahre ago

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

mehr als 7 Jahre ago