문제를 풀었습니다


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

대략 5년 전

문제를 풀었습니다


expand intervals vol.2
Similar to problem <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528>. This is a more general case, when bounds ...

대략 5년 전

문제를 풀었습니다


Vectorize the digits of an Integer
Create a vector of length N for an integer of N digits. x = 123045; x_vec = [1 2 3 0 4 5]; I happened upon a trick ...

대략 5년 전

문제를 풀었습니다


expand intervals
You're given a row vector of an even number of monotonically increasing integers. Each pair of consecutive integers is the lower...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Divisible by 13
Write a function to determine if a number is divisible by 13. Similar to the number seven, this can be done by a few different m...

대략 5년 전

문제를 풀었습니다


Divisible by 16
Write a function to determine if a number is divisible by 16. This can be done by a few different methods. Here are two: # If...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

질문


Need help for Cody Problem 42409: Divisible by 7
Hi! I am new in Matlab programing. I try to learn this language through cody problem. But I couldn't solve this problem for a lo...

대략 5년 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

대략 5년 전

문제를 풀었습니다


Detect a number and replace with two NaN's
Write code which replaces the number 1 with two NaNs. Example X = [ 1 2 NaN 4 1 3 7 NaN 1 4 NaN 2] ...

대략 5년 전

문제를 풀었습니다


Geometric series
Find the sum, given the first term t1, the common ratio r, and number of terms n. Examples If input t1=1, r=1, n=7 the...

대략 5년 전

문제를 풀었습니다


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

대략 5년 전

문제를 풀었습니다


Sum! Sum! Sum!
Calculate the sum of the sequence up to nth term >> a,aa,aaa,aaaa,... 2,22,222,2222,... [for a=2]

대략 5년 전

문제를 풀었습니다


Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

대략 5년 전

문제를 풀었습니다


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

대략 5년 전

문제를 풀었습니다


Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Back to basics 19 - character types
Covering some basic topics I haven't seen elsewhere on Cody. Return the number of punctuation characters in the input variabl...

대략 5년 전

문제를 풀었습니다


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

대략 5년 전

문제를 풀었습니다


Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

대략 5년 전

문제를 풀었습니다


Find the sum of n squares
What is the sum of the squares of the first n integers?

대략 5년 전

문제를 풀었습니다


Find Logic 18

대략 5년 전

문제를 풀었습니다


Find Logic 19

대략 5년 전

문제를 풀었습니다


Total energy

대략 5년 전

문제를 풀었습니다


Potential energy calculation

대략 5년 전

문제를 풀었습니다


Kinetic energy calculation

대략 5년 전

문제를 풀었습니다


Laws of motion 6

대략 5년 전

문제를 풀었습니다


Laws of motion 5

대략 5년 전

문제를 풀었습니다


Laws of motion 4

대략 5년 전

더 보기