문제를 풀었습니다


Compound Interest: Interest Rate
Theorem : Compound Interest where, F : Future value at the end of n periods P : Present value r : Annual nominal rate n :...

거의 3년 전

문제를 풀었습니다


Remove Duplicates
Remove duplicates from the vector of integers and display in sorted order

거의 3년 전

문제를 풀었습니다


The rabbit problem
Suppose a newly-born pair of rabbits, one male, one female, are put in a field. Rabbits are able to mate at the age of one month...

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


Compute a nested cube root
Consider the quantity . Write a function to compute without using loops or recursion.

거의 3년 전

문제를 풀었습니다


Find the moving-average of the elements of a vector
Example Input vector: [1 2 3 4] output vector: 1st element=1/1, 2nd element=(1+2)/2, 3rd element=(1+2+3)/3, 4th element=(1+2...

거의 3년 전

문제를 풀었습니다


Simple Interest : Calculate annual simple interest rate
Theorem : Simple Interest where; F : Future Value P : Present Value r : Annual simple interest rate (decimal) t : Time in...

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


How many ways?
Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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.

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


A times B
A times B

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

문제를 풀었습니다


return 4
Return 4

거의 3년 전

문제를 풀었습니다


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

거의 3년 전

더 보기