Community Profile

# HARISANKAR PS

### NIT TRICHY

36 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

#### HARISANKAR PS's バッジ

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

7年以上 前

Generate pi using logarithm
Generate pi using logarithm

7年以上 前

Generate pi using logarithm
Generate pi using logarithm

7年以上 前 | 2

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

7年以上 前 | 0

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

7年以上 前

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

7年以上 前 | 0

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

7年以上 前

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

7年以上 前 | 0

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

7年以上 前

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

7年以上 前

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

7年以上 前

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

7年以上 前

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.

7年以上 前

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

7年以上 前 | 0

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

7年以上 前

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

7年以上 前

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

7年以上 前

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.

7年以上 前

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

7年以上 前

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.

7年以上 前

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

7年以上 前

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

7年以上 前

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

7年以上 前

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]

7年以上 前

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

7年以上 前

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

7年以上 前 | 0

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

7年以上 前

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

7年以上 前

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

7年以上 前

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

7年以上 前