Resuelto


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

30 días hace

Resuelto


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


Double the 2x2 Matrix
In this challenge, you are given a predefined 2x2 matrix called x. Your task is to multiply every element in this matrix by 2 an...

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


Division
Divide a by b.

alrededor de 1 mes hace

Resuelto


Multiplication
Multiply a and b.

alrededor de 1 mes hace

Resuelto


Squares
Find the square of x.

alrededor de 1 mes hace

Resuelto


Addition
Add together the values of a and b.

alrededor de 1 mes hace

Resuelto


Addition II
find a+b+c+d

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


Draw '\'
Can you draw the sign '\' by zeros and ones? NOTICE: Be x-by-x matrix.

alrededor de 1 mes hace

Problema


Draw '\'
Can you draw the sign '\' by zeros and ones? NOTICE: Be x-by-x matrix.

alrededor de 1 mes hace | 0 | 13 solvers

Resuelto


Divisible by 5
Pursuant to the first problem in this series, this one involves checking for divisibility by 5. Write a function to determine i...

alrededor de 1 mes hace

Resuelto


Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

alrededor de 1 mes hace

Resuelto


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

alrededor de 1 mes hace

Resuelto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

alrededor de 1 mes hace

Resuelto


Find max
Find the maximum value of a given vector or matrix.

alrededor de 1 mes hace

Resuelto


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

alrededor de 1 mes hace

Resuelto


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

alrededor de 1 mes hace

Resuelto


only input
Return the output without writing any code into the function.

alrededor de 1 mes hace

Resuelto


Square wave average calculation
Given its peak and duty cycle, calculate avg value of square wave

alrededor de 1 mes hace

Resuelto


Negative matrix
Change the sign of all elements in given matrix.

alrededor de 1 mes hace

Resuelto


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

alrededor de 1 mes hace

Cargar más