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

6 månader 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...

6 månader 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'

6 månader 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 ...

8 månader ago | 1 answer | 0

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 månader 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 månader 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 månader 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 månader 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.

9 månader 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 ...

9 månader ago

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

mer än ett år ago | 0 answers | 0

Solved

Convert given decimal number to binary number.

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

mer än ett år ago

Solved

Determine the square root

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

mer än 2 år 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: ...

mer än 2 år 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 ...

mer än 2 år ago

Solved

Divide by 4

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

mer än 2 år 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...

mer än 2 år ago

Solved

Area of square

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

mer än 2 år ago

Solved

Find the area of a triangle

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

mer än 2 år ago

Solved

Area of a Square

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

mer än 2 år 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.

mer än 2 år ago

Solved

Area of a circle

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

mer än 2 år ago

Solved

Area of a Square

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

mer än 2 år ago