Solved

Area of a Square

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

3 months ago

Solved

Annual Salary

What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

3 months ago

Solved

Area of a circle

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

3 months ago

Solved

Write a code that will follow the equation y = x * (x + x) * x.

If x = 5, y = 5 * (5+5) * 5 = 250

3 months ago

Answered

Why Do I keep getting NaNs in my code???

NaN stands for Not a Number. If your variable/matrix/input does not have the specific number/range that should meet the argument...

Why Do I keep getting NaNs in my code???

NaN stands for Not a Number. If your variable/matrix/input does not have the specific number/range that should meet the argument...

3 months ago | 0

Answered

MATLAB Cody locked solutions to a solved problem

Yes, you cannot view the solutions which are shorter than your solution in size. You can only view the solutions which are of s...

MATLAB Cody locked solutions to a solved problem

Yes, you cannot view the solutions which are shorter than your solution in size. You can only view the solutions which are of s...

3 months ago | 0

Question

My problems are vanished

I created some problems last night and created a group too. All those are now missing. Also my ranking progress, activites, bad...

3 months ago | 1 answer | 0

Solved

Matlab Basics II - squares

Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

3 months ago

Solved

Matlab Basics - y as a function of x

Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

3 months ago

Solved

Matlab Basics - Rounding III

Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

3 months ago

Solved

Matlab Basics II - Max & Index of Max

Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

3 months ago

Solved

Arrange vector in ascending order

Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

3 months ago

Solved

find the surface area of a cube

given cube side length x, find the surface area of the cube, set it equal to y

3 months ago

Solved

Determine the mean of matrix

Determine the mean of matrix without using mean function Hint: use simple algorithm

3 months ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

3 months ago

Solved

Weighted average

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

3 months ago

Solved

Cell joiner

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

3 months ago

Solved

Find the position of first minimum value in an integer array with numbers

If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

3 months ago