Community Profile # Tushal Desai

### MathWorks

Last seen: Today Active since 2016

#### Statistics

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

View by

(Answers developer) This is a new feature in MATLAB Answers which allows you to run your MATLAB code directly from the MATLAB An...

4 meses ago | 1

| accepted

(Answers dev) This issue has been addressed. Please clear the browser's cache if you still see the same error.

6 meses ago | 1

| accepted

Solved

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

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

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

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

9 meses ago

MATLAB Answers bug in typing window - "body"
(Answers dev) Thanks for reporting it. This issue is fixed as of May 13.

más de 1 año ago | 0

Solved

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

alrededor de 2 años ago

Solved

Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

alrededor de 2 años 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 ...

alrededor de 2 años ago

Solved

Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

alrededor de 2 años ago

Solved

Suppress the French accent. Example 'Déjà présent' -> 'Deja present'

más de 2 años ago

Solved

sinus function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

más de 2 años ago

Solved

Sunday bonus
Submit a solution on any Sunday and you will get 10 points. Only for MATLAB fans!

más de 2 años ago

Solved

surface of a spherical planet
you just discovered its circumference, that is the input.

más de 2 años ago

Solved

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

más de 2 años ago

Solved

Complex number
For complex number c=a+bi, write code that will add a and b together.

más de 2 años ago

Solved

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

más de 2 años ago

Solved

Basic arrays operations.
Apply element-by-element binary operation 'fun' to two arrays (A and B).

más de 2 años ago

Solved

Rounding
Round 10.67 and make 'y' equal to that number.

más de 2 años ago

Solved

02 - Vector Variables 5
_eVec_ = _Hello_ ( _eVec_ is a string, which is a vector of characters )

más de 2 años ago

Solved

reverse string
input='rama' output='amar'

más de 2 años ago

Solved

Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

más de 2 años ago

Solved

Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

más de 2 años ago

Solved

Reverse a matrix
Its simple. You have to reverse a given matrix.

más de 2 años ago

Solved

Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').

más de 2 años ago

Solved

Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

más de 2 años ago

Solved

Binary Coder
Take an input number and print the binary value of this number.

más de 2 años ago

Solved

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

más de 2 años ago

Solved

Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

más de 2 años ago