Gelöst


Find the area of a square

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


return 4
Return 4

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


A times B
A times B

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


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.

fast 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


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

etwa 3 Jahre vor

Gelöst


Generate Hadamard Matrix without using hadamard function
In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are e...

etwa 3 Jahre vor

Gelöst


Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

mehr als 3 Jahre vor

Gelöst


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

mehr als 3 Jahre vor

Gelöst


Convert a vector of Integers into a matrix of binaries
Convert a vector of positive integers into a matrix containing their binary representation. Each column of the output contains t...

mehr als 3 Jahre vor

Gelöst


Find Current in R circuit.
Find the current in an R circuit for a given input of Voltage (V) and Resistance(R).

mehr als 3 Jahre vor

Gelöst


Find alternating sum
Given an array, find alternating sum i.e. – y = x (1) – x (2) + x (3) – x (4) + x (5) - …

mehr als 3 Jahre vor

Mehr laden