문제를 풀었습니다


Matrix FUN
Given a Matrix M, find out the number of elements of matrix that are divisible by 3. M = [1 2 3;4 5 6;7 8 9]; ou...

2년 초과 전

문제를 풀었습니다


Add a vector to a matrix
Given a matrix |mat| of size |mXn| and a row vector |v| of size |1Xs|, return a matrix with |m+1| rows that conatains |mat| over...

2년 초과 전

문제를 풀었습니다


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

2년 초과 전

문제를 풀었습니다


Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

2년 초과 전

문제를 풀었습니다


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

2년 초과 전

문제를 풀었습니다


Horizontal matrix sort
Given a matrix x with n rows and m columns, return a matrix y with n rows and 2m columns, such that every row in x is sorted fro...

2년 초과 전

문제를 풀었습니다


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

2년 초과 전

문제를 풀었습니다


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

2년 초과 전

문제를 풀었습니다


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

2년 초과 전

문제를 풀었습니다


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

2년 초과 전

문제를 풀었습니다


ASCii Code
Using Matlab get the ASCii for '?'

2년 초과 전

문제를 풀었습니다


Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...

2년 초과 전

문제를 풀었습니다


What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

2년 초과 전

문제를 풀었습니다


Is this matrix orthogonal?
Given a square matrix, a, determine whether it is orthogonal. INPUT: a, a n x n matrix OUTPUT: true or false

2년 초과 전

문제를 풀었습니다


Integer or Float?
Test an input to see whether it is an integer or a floating point number. If it is an integer return 1 for 'true'. Otherwise ret...

2년 초과 전

문제를 풀었습니다


Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

2년 초과 전

문제를 풀었습니다


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

2년 초과 전

문제를 풀었습니다


Find the number of days in a given year
Given a year number (eg. 2000) as input, find how many days are there in the given year.

2년 초과 전

문제를 풀었습니다


Cody Computer Part 2 - Get the license number of Cody Computer
In the Cody computer investigation party, you may have already solved : <http://www.mathworks.com/matlabcentral/cody/problems...

2년 초과 전

문제를 풀었습니다


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

2년 초과 전

문제를 풀었습니다


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

2년 초과 전

문제를 풀었습니다


radius of a spherical planet
You just measured its surface area, that is the input.

2년 초과 전

문제를 풀었습니다


Convert radians to degrees
Given input in radians, output to degrees

2년 초과 전

문제를 풀었습니다


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

2년 초과 전

문제를 풀었습니다


Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

2년 초과 전

문제를 풀었습니다


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

2년 초과 전

더 보기