문제를 풀었습니다


Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts example: a = 1, b = 2 output = 1 1.25 ...

4년 초과 전

문제를 풀었습니다


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

4년 초과 전

문제를 풀었습니다


Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

4년 초과 전

문제를 풀었습니다


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

4년 초과 전

문제를 풀었습니다


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

4년 초과 전

문제를 풀었습니다


MATLAB Counter
Write a function f = counter(x0,b) to construct a counter handle f that counts with an initial value x0 and a step size b. E...

4년 초과 전

문제를 풀었습니다


Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

4년 초과 전

문제를 풀었습니다


select the primes of a vector
Find the prime numbers in a vector

4년 초과 전

문제를 풀었습니다


Getting the row and column location from a matrix
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get <http://www.mathwo...

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

4년 초과 전

문제를 풀었습니다


ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける(コンマはオプション)。 x = [1, 2, 3, 4] 問題:次のベクトルを出力する関数を作成せよ。...

4년 초과 전

문제를 풀었습니다


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

4년 초과 전

문제를 풀었습니다


Project Euler: Problem 8, Find largest product in a large string of numbers
Find the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...

4년 초과 전

문제를 풀었습니다


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

4년 초과 전

문제를 풀었습니다


reverse string
input='rama' output='amar'

4년 초과 전

문제를 풀었습니다


MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string. For example A='harsa'; b='harish'; result '1' ...

4년 초과 전

문제를 풀었습니다


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

4년 초과 전

문제를 풀었습니다


vectorization in N
For a given integer n (n>1), compute the sum f (i) (1 <= i <= n) where f (i) = 1 if n is odd and 2 otherwise.

4년 초과 전

문제를 풀었습니다


Remove the Zero
Given an array n, remove all zeros

4년 초과 전

문제를 풀었습니다


y equals x divided by 2
function y = x/2

4년 초과 전

문제를 풀었습니다


Matrix which contains the values of an other matrix A at the given locations.
If you have two matrices, which together give xc and yc coordinates into another matrix, eg : xc = [1 1 1; 2 2 1]; ...

4년 초과 전

문제를 풀었습니다


Are all the three given point in the same line?
In this problem the input is the coordinate of the three points in a XY plane? P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) how can...

4년 초과 전

문제를 풀었습니다


Positive Infinity
Round the array a towards positive infinity

4년 초과 전

문제를 풀었습니다


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

4년 초과 전

문제를 풀었습니다


Array of Ones
Create a 100 X 100 array of ones.

4년 초과 전

문제를 풀었습니다


Acid and water
&#9878; &#9878; &#9878; &#9878; &#9878; &#9878; &#9878; &#9878; Assume that there is a 100 liter tank. It is initially fi...

4년 초과 전

문제를 풀었습니다


Concatenate two strings
Its very easy. Just concatenate two strings.

4년 초과 전

더 보기