Community Profile

# Tushal Desai

### MathWorks

Last seen: 4 jours il y a Actif depuis 2016

A MathWorker

All

#### Content Feed

Afficher par

A résolu

Back to basics 14 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of all MATLAB keywords

environ 2 ans il y a

A résolu

The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

environ 2 ans il y a

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

plus de 2 ans il y a | 1

| A accepté

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

plus de 2 ans il y a | 1

| A accepté

A résolu

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

presque 3 ans il y a

A résolu

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

presque 3 ans il y a

A résolu

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

presque 3 ans il y a

A résolu

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

presque 3 ans il y a

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

plus de 3 ans il y a | 0

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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.

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a

A résolu

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

plus de 4 ans il y a