문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


return 4
Return 4

10개월 전

문제를 풀었습니다


Calculate the Voltage Through a Step-Up Transformer
Given a step-up transformer has a primary coil with A number loops, a secondary coil with B number loops, and a primary voltage ...

10개월 전

문제를 풀었습니다


Travel time
Calculate the time (in hours) it takes a car traveling at a given uniform speed of s km/hour to travel a distance of d km. For i...

10개월 전

문제를 풀었습니다


Array Concatenation (2)
Given two matrices, a and b, concatenate the two matrices vertically, i.e., the number of rows of the result should be equal to ...

10개월 전

문제를 풀었습니다


Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


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.

10개월 전

문제를 풀었습니다


How many offices does MathWorks have in the UK
Please write a function that returns the number of offices MathWorks has in the UK.

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


Magnitude with vargin
Magnitude with an undefined amount of arguments

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


How many revolutions around the earth
Calculate how many revolutions you will around the earth till 1/1/2100. Given the birhdate find your age in number of days on 1...

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


convert 24 hour time to 12 hour time
convert 24 hour time to 12 hour time Input: '13:12' Output: '01:12 PM' Input: '06:12' Output: '06:12 AM'

10개월 전

문제를 풀었습니다


Alternate Arrangement
Determine the ways of arranging 'm' men and 'w' women alternatively in a row of 's' seats. Assumptions : s<m and s<w

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


Bag of apples
find probabilty of getting red apples from a bag of 'r' red and 'g' green apples.

10개월 전

문제를 풀었습니다


Build the Well
Calculate the total time taken for building 'n' wells given : Worker A takes a hr to build the well alone Worker B takes b hr...

10개월 전

문제를 풀었습니다


Add Even and Subtract Odd Numbers in an Array
For an input array, add all the even values and subtract the odd values. This final value is the output. E.g. input = [1 2 3 4...

10개월 전

문제를 풀었습니다


Add Odd and Subtract Even Numbers in an Array
For an input array, add all the odd values and subtract the even values. The final value is the output. E.g. input = [1 2 3 4 ...

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


A times B
A times B

10개월 전

문제를 풀었습니다


Find the surface area of a cone.
For instance, Given r (radius) = 3, and s (slant height) = 5: surface area should be 94.

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


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

10개월 전

문제를 풀었습니다


Count the peaceful queens
In a 5x5 chessboard with a queen of one color (white, say) on the perimeter, one can place 12 black queens on the board such tha...

11개월 전

더 보기