Resuelto


Is it the answer to life the universe and everything?
The answer to life the universe and everything is 42, but this is naturally in base 13. Unfortunately, MATLAB is in base 10, so ...

alrededor de 3 años hace

Resuelto


2行2列の行列の行列式を求めてみよう
ある2行2列の行列の入力に対して、行列式を出力してください。 例えば、入力が(1,2; 3,4)のとき、出力は1*4-3*2で-2となります。

alrededor de 3 años hace

Resuelto


Find collatz series next number
For given x, if x is even, output is (x/2) if x is odd, output is (3x+1)

alrededor de 3 años hace

Resuelto


Check for armstrong number
Given a number, check if it is an armstrong number. Eg: n = 371 Output: 1 Eg: n = 75 Output: 0

alrededor de 3 años hace

Resuelto


findPositiveEvenNumbers
Write a MATLAB function findPositiveEvenNumbers that takes an array of integers as input and returns a new array containing only...

alrededor de 3 años hace

Resuelto


Find the volume of a cube
Given a cube with edge length x, calculated the volume of the cube.

alrededor de 3 años hace

Resuelto


Find the area of a square

alrededor de 3 años hace

Resuelto


Find Even Numbers in Vector
Given a vector x, return the even entries of the vector in the order they appear in x.

alrededor de 3 años hace

Resuelto


Sum of Squares
Given a vector v of length n, write a MATLAB function to calculate the sum of the squares of its elements.

alrededor de 3 años hace

Resuelto


Even Sum
Calculate the sum of all even numbers between 1 and a given positive integer n. Write a function that takes n as input and retur...

alrededor de 3 años hace

Resuelto


Find duplicate number from a vector of size n + 1 containing numbers from 1:n
From a given vector of size n + 1, return the duplicate number. Constraints The vector can only contain numbers from 1 to ...

alrededor de 3 años hace

Resuelto


return 4
Return 4

alrededor de 3 años hace

Resuelto


Multiply by 5
Given an input x (scalar), multiply it by 5.

alrededor de 3 años hace

Resuelto


Find cross product of 2 vectors
Find cross product of 2 vectors

alrededor de 3 años hace

Resuelto


Find sum of alternate numbers in a vector
Find sum of alternate numbers in a vector starting from index 1

alrededor de 3 años hace

Resuelto


Matrix symmetry
Given a matrix A = [1 2 3; 4 5 6] Flip it horizontally and vertically to obtain a complete reversal of both rows and columns. ...

alrededor de 3 años hace

Resuelto


A times B
A times B

alrededor de 3 años hace

Resuelto


Determine if input is greater than pi
Evaluate if given number is greater than pi. If greater, return true; else, return false.

alrededor de 3 años hace

Resuelto


Fibonacci Sequence
Write a MATLAB function called fibonacci_sequence(n) that takes an integer n as input and returns the first n terms of the Fibon...

alrededor de 3 años hace

Resuelto


Determine if input is greater than 100
Evaluate if given number is greater than 100. If greater, return true; else, return false.

alrededor de 3 años hace

Resuelto


A Mathematical Problem
Find the kth digit of the inverse of a number 'n'. Assumption: n>1

alrededor de 3 años hace

Resuelto


Find the mean of the magic x
Given a x term, find the magic x, then find the mean/average of any one row or column.

alrededor de 3 años hace

Resuelto


Armstrong Number
Write a function name armstrong_check that checks whether the given input is an Armstrong Number or not. It returns logical True...

más de 3 años hace

Resuelto


Sequence Vectorization - I
Given a Natural number N, return the sequence - [1 1 2 1 2 3 1 2 3 4 ... 1 2 3 ... N-3 N-2 N-1 N] i.e. the horizontal concatenat...

más de 3 años hace

Resuelto


Function(4)
Hit submit for some points! function y = your_fcn_name(x) y = x^2 - 4; end

más de 3 años hace

Resuelto


Easy Function(1)
Use this function to earn some cody points! function y = your_fcn_name(x) y = x^2 - 1; end

más de 3 años hace

Resuelto


Easy Function(2)
Hit the submit button for some cody points! function y = your_fcn_name(x) y = x^2 + 20; end

más de 3 años hace

Resuelto


Easy Function(3)
Hit submit for some free points. function y = your_fcn_name(x) y = x^2 + 30; end

más de 3 años hace

Resuelto


Easy Function(4)
Use the submit button to earn points function y = your_fcn_name(x) y = x^2 + 40; end

más de 3 años hace

Resuelto


Find The area of the square
Given that the length of the side of a square is x, find the area.

más de 3 años hace

Cargar más