Risolto


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

10 mesi fa

Risolto


Remove the Zero
Given an array n, remove all zeros

10 mesi fa

Risolto


Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

10 mesi fa

Risolto


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

10 mesi fa

Risolto


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

10 mesi fa

Risolto


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

10 mesi fa

Risolto


convert matrix to single column
given any matrix, convert it to single column

10 mesi fa

Risolto


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

10 mesi fa

Risolto


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

10 mesi fa

Risolto


Divisible by 5
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

10 mesi fa

Risolto


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

10 mesi fa

Risolto


Square root of a number
Write a code that will output the square root of x.

10 mesi fa

Risolto


Equal to their cube
Tell me three real numbers that are equal to their cubes?

10 mesi fa

Risolto


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

10 mesi fa

Risolto


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

10 mesi fa

Risolto


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 is n=4 th...

10 mesi fa

Risolto


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

10 mesi fa

Risolto


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

10 mesi fa

Risolto


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

10 mesi fa

Risolto


y equals x divided by 2
function y = x/2

10 mesi fa

Risolto


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

10 mesi fa

Risolto


Column norms of a matrix
Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...

10 mesi fa

Risolto


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

10 mesi fa

Risolto


Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

10 mesi fa

Risolto


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

10 mesi fa

Risolto


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

10 mesi fa

Risolto


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

10 mesi fa

Risolto


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

10 mesi fa

Risolto


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

10 mesi fa

Risolto


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

10 mesi fa

Carica altro