문제를 풀었습니다


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

6개월 전

문제를 풀었습니다


Radians to Degrees
Convert radians to degrees.

6개월 전

문제를 풀었습니다


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

6개월 전

문제를 풀었습니다


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

6개월 전

문제를 풀었습니다


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

6개월 전

문제를 풀었습니다


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

6개월 전

문제를 풀었습니다


Energy of a photon
&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883 Given the frequency F of a photon in giga hertz. Find energy E of this photon...

6개월 전

문제를 풀었습니다


Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

6개월 전

문제를 풀었습니다


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

6개월 전

문제를 풀었습니다


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

6개월 전

문제를 풀었습니다


No more zeros
Given an array with zeros at the beginning or at the end, you should get the output without these zeros: input = [zeros(5...

6개월 전

문제를 풀었습니다


Pascal's triangle
<https://en.wikipedia.org/wiki/Pascal%27s_triangle> if the order is: x = 3; the output will be: output = [0 0 0 1 0 0 ...

6개월 전

문제를 풀었습니다


kmph to mph converter
Convert the speed in miles/hour to km/hour.

6개월 전

문제를 풀었습니다


Basics: counting digits of a number irrespective of the sign
publish the number of digits in any input integer example: -23---->2

6개월 전

문제를 풀었습니다


Basic matlab numeric and string manipulations
If entered input (n) is _numeric_ , compute its *log to the base (n+2)* , if it is a _lower case_ alphabet, *convert it to i...

6개월 전

문제를 풀었습니다


Percentage of zeros in a matrix of only 1s and 0s
Write a function called _zero_stat_ that takes a matrix as an input that only has 0 and 1 elements. The function needs to comput...

6개월 전

문제를 풀었습니다


Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

6개월 전

문제를 풀었습니다


concatenate the elements
you should concatenate the elements of a matrix in one dimensional array, for example if the input is A = [1 2 3; 4 5 6; 7 ...

6개월 전

문제를 풀었습니다


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

6개월 전

문제를 풀었습니다


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

6개월 전

문제를 풀었습니다


true or false
if the matrix has a zero, return true. else, return false

6개월 전

문제를 풀었습니다


basic matrix operations: rotate and find sum of diagonal elements of the resultant matrix
For given input matrix a, rotate it by 90 degrees and find the sum of the diagonals. Example: Input: a = 1 ...

6개월 전

문제를 풀었습니다


Check if there are white spaces in the input string
If there are white spaces in the input string, output=1 else 0

6개월 전

문제를 풀었습니다


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

6개월 전

문제를 풀었습니다


Capitalized string operations
Convert the input sentence to upper case and replace all vowels with an underscore ('_')

6개월 전

문제를 풀었습니다


Half?
If you toss an even number (x) of coins, what is the probability (y) of 50% head and 50% tail?

6개월 전

문제를 풀었습니다


find out eigenvector of matrix
find out eigenvector of matrix A =eye(3); Answer is [0 0 1; 0 1 0; 1 0 0];

6개월 전

문제를 풀었습니다


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

6개월 전

문제를 풀었습니다


Construct a string from letters and counts
Given two input arrays like this: [5,3,1] ['a','b','c'] Output a string that contains each letter the specified num...

6개월 전

문제를 풀었습니다


Double Deal
*Description* Given an input vector _v_, return the first element as the first output, the second element as the second outpu...

6개월 전

더 보기