문제를 풀었습니다


Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

대략 5년 전

문제를 풀었습니다


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

대략 5년 전

문제를 풀었습니다


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

대략 5년 전

문제를 풀었습니다


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

대략 5년 전

문제를 풀었습니다


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

대략 5년 전

문제를 풀었습니다


solid of revolution
Given an real polynomial P and two real numbers a,b with 0<=a<=b. Calculate the volume of the solid of revolution made by rota...

대략 5년 전

문제를 풀었습니다


Babylonian method
Calculate the square root of a given positive number a using the Babylonian method (https://en.wikipedia.org/wiki/Methods_of_co...

대략 5년 전

문제를 풀었습니다


Matrix Construction I
Given n, construct a matrix as shown in the example below. Example For n=8, the output should look like this: 1 2 3 4 ...

대략 5년 전

문제를 풀었습니다


Gauss Eliminate 2-by-2 example
Use forward elimination to make the coefficient matrix, A, an upper triangular matrix, and then solve using back substitution, f...

대략 5년 전

문제를 풀었습니다


Perimeter
Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example...

대략 5년 전

문제를 풀었습니다


Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

대략 5년 전

문제를 풀었습니다


Find and replaces spaces from a input string with *
For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is ...

대략 5년 전

문제를 풀었습니다


Area of square
Find the area of a square whose diagonal length is given as x.

대략 5년 전

문제를 풀었습니다


How many apples
You have x apples I take from you y apples now how many apples you have ?

대략 5년 전

문제를 풀었습니다


triangle

대략 5년 전

문제를 풀었습니다


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

대략 5년 전

문제를 풀었습니다


Conversion from hours to mili sec
Convert given input in hours to mili seconds

대략 5년 전

문제를 풀었습니다


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

대략 5년 전

문제를 풀었습니다


Mean Square Error

대략 5년 전

문제를 풀었습니다


calculate the length of matrix
input 1 array, calculate the length

대략 5년 전

문제를 풀었습니다


First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

대략 5년 전

문제를 풀었습니다


the average value of the elements
Calculate the average value of the elements in the array

대략 5년 전

문제를 풀었습니다


Solve the recursion

대략 5년 전

문제를 풀었습니다


Minkowski distance

대략 5년 전

문제를 풀었습니다


Find the area between curves (P3)

대략 5년 전

문제를 풀었습니다


Calculate Triangle Area: A, B and Beta is given

대략 5년 전

문제를 풀었습니다


Taxicab distance

대략 5년 전

문제를 풀었습니다


Find the area between curves (P2)

대략 5년 전

문제를 풀었습니다


Find the area between curves (P1)

대략 5년 전

문제를 풀었습니다


System of Linear Equations

대략 5년 전

더 보기