Community Profile

# Rahul Shinde

### Tata Consultancy Services

266 total contributions since 2013

View details...

Contributions in
View by

Solved

Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

4 months ago

Solved

Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

4 months ago

Solved

Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

4 months ago

Question

Runing MATLAB on HPC and connection Status
How I can get HPC connection status whether HPC is already connected to my system using Matlab commands?I don't want to see the ...

6 months ago | 1 answer | 0

### 1

Solved

Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

7 months ago

Solved

Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

7 months ago

Solved

Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

7 months ago

Solved

Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

7 months ago

Solved

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

7 months ago

Solved

Create a vector
Create a vector from 0 to n by intervals of 2.

7 months ago

Solved

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

7 months ago

Solved

Square root of number
Square root of given number.

1 year ago

Problem

Square root of number
Square root of given number.

1 year ago | 0 | 58 solvers

Question

How to Run Sim command for non display matlab.
I am facing following error while running Model in Non display matlab using sim() Error: Harness operations are not supported...

1 year ago | 0 answers | 0

### 0

Solved

Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

1 year ago

Solved

Add 2 numbers e.g a=1; b=1 c=a+b;

2 years ago

Solved

Determine the square root
Determine the square root of the value the user has entered, n.

2 years ago

Solved

Max of a Vector
Write a function to return the max of a vector

2 years ago

Solved

Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

2 years ago

Solved

multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

2 years ago

Solved

Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

2 years ago

Solved

Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

2 years ago

Solved

Area of square
Find the area of a square whose diagonal length is given as x.

2 years ago

Solved

Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

2 years ago

Solved

Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

2 years ago

Solved

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

2 years ago

Solved

Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

2 years ago

Solved

Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

2 years ago

Solved

Area of a disk
Find the area of a disk or circle. x= radius of the disk.

2 years ago

Solved

Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

2 years ago