문제를 풀었습니다


Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

대략 11년 전

문제를 풀었습니다


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

대략 11년 전

문제를 풀었습니다


Max of a Vector
Write a function to return the max of a vector

대략 11년 전

문제를 풀었습니다


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

대략 11년 전

문제를 풀었습니다


Binary
Given a positive, integer n, create a function that returns the respective binary number in the form of a vector. Example: ...

대략 11년 전

문제를 풀었습니다


Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

대략 11년 전

문제를 풀었습니다


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

대략 11년 전

문제를 풀었습니다


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

대략 11년 전

문제를 풀었습니다


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

대략 11년 전

문제를 풀었습니다


Determine the square root
Determine the square root of the value the user has entered, n.

대략 11년 전

문제를 풀었습니다


Sum the elements in either diagonal of a square matrix
Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal.

대략 11년 전

문제를 풀었습니다


Positive Infinity
Round the array a towards positive infinity

대략 11년 전

문제를 풀었습니다


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

대략 11년 전

문제를 풀었습니다


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

대략 11년 전

문제를 풀었습니다


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

대략 11년 전

문제를 풀었습니다


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

대략 11년 전

문제를 풀었습니다


Find Index of maximum Value and maximum Value of a vector
Find the Index of the first occurrence of the maximum value in a vector and also the maximum value in the vector. Example: [...

대략 11년 전

문제를 풀었습니다


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

대략 11년 전

문제를 풀었습니다


Complex number
For complex number c=a+bi, write code that will add a and b together.

대략 11년 전

문제를 풀었습니다


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

대략 11년 전

문제를 풀었습니다


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

대략 11년 전

문제를 풀었습니다


Negative matrix
Change the sign of all elements in given matrix.

대략 11년 전

문제를 풀었습니다


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

대략 11년 전

문제를 풀었습니다


Generate a random matrix A of (1,-1)
Input n: is an positive integer which serves as the dimension of the matrix A; Output: A=(Aij),where each entry Aij is either...

대략 11년 전

문제를 풀었습니다


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

대략 11년 전

문제를 풀었습니다


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

대략 11년 전

문제를 풀었습니다


Remainder
Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

대략 11년 전

문제를 풀었습니다


Rounding
Round 10.67 and make 'y' equal to that number.

대략 11년 전

문제를 풀었습니다


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

대략 11년 전

문제를 풀었습니다


Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.

대략 11년 전

더 보기