Solved


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

5 months ago

Solved


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

5 months ago

Solved


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

5 months ago

Solved


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

5 months ago

Solved


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

5 months ago

Solved


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

5 months ago

Solved


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

5 months ago

Solved


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

5 months ago

Solved


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

5 months ago

Solved


Find remainder when x is divided by 3
Find remainder when x is divided by 3

5 months ago

Solved


first element of matrix
find the first elements of a column matrix

5 months ago

Solved


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

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

5 months ago

Solved


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

5 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

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

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

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

5 months ago | 1 answer | 0

1

answer

Solved


Array of Ones
Create a 100 X 100 array of ones.

5 months ago

Solved


Min of a Matrix
Return the minimum value in the given matrix.

5 months ago

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]

5 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

5 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

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

5 months ago

Solved


Convert degrees to radians
Given input in degrees, output to radians

5 months ago

Solved


Create sine function out of cosine
Please don't use sin(x) directly

5 months ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

5 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];

5 months ago

Solved


substract the two numbers

5 months ago

Load more