문제를 풀었습니다


Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

거의 10년 전

문제를 풀었습니다


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

거의 10년 전

문제를 풀었습니다


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

거의 10년 전

문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


Make a vector of prime numbers
Input(n) - length of vector with prime numbers Output(v) - vector of prime numbers Example: * n=1; v=2 * n=3; v=[2 3 5...

거의 10년 전

문제를 풀었습니다


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

거의 10년 전

문제를 풀었습니다


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

거의 10년 전

문제를 풀었습니다


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

거의 10년 전

문제를 풀었습니다


Vector
Create a 1 x 10 vector from 1 to 20 with increments of 2

거의 10년 전

문제를 풀었습니다


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

거의 10년 전

문제를 풀었습니다


Sum the squares of numbers from 1 to n
For a given value of n return the sum of square of numbers from 1 to n. Example For n = 2 then sum of squares = 5 (1^2 + ...

거의 10년 전

문제를 풀었습니다


Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

거의 10년 전

문제를 풀었습니다


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

거의 10년 전

문제를 풀었습니다


Polynomial division
Divide a polynomial u by polynomial v and return the quotients only. Example: u = x^4+3*x^3+5*x+3 v = x^2+1 Answer: ...

거의 10년 전

문제를 풀었습니다


Weave two vectors into one
Weave the two given vectors into one as shown below. Example: If a = [1 1 1] b = [0 0 0] then y = [1 0 1 0 ...

거의 10년 전

문제를 풀었습니다


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

거의 10년 전

문제를 풀었습니다


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

거의 10년 전

문제를 풀었습니다


Find the square root of a value
Given the variable x as your input, find the square root and let the result be represented by y Examples: Input x = 4 O...

거의 10년 전

문제를 풀었습니다


Sum all integers from 1 to 5^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=6

거의 10년 전

문제를 풀었습니다


Times 32
X is given as your variable. Y is your output multiplied by 32 Example x=1 y=1x32=32

거의 10년 전

문제를 풀었습니다


Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

거의 10년 전

문제를 풀었습니다


How to make y half of x
Making y equal to x/2.

거의 10년 전

문제를 풀었습니다


square root
Find the square root (y) of an input (x).

거의 10년 전

문제를 풀었습니다


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

거의 10년 전

문제를 풀었습니다


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

거의 10년 전

문제를 풀었습니다


Calculate square and cube of number
Calculate square and cube of number x

거의 10년 전

문제를 풀었습니다


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

거의 10년 전

문제를 풀었습니다


Put Two 1D matrices into one 1D matrix
Example: If input a = [1 2 3 4 5]; input b = [10 9 8 7 6]; then output will be, y_correct = [1 10 2 9 3 8 4 7 5...

거의 10년 전

문제를 풀었습니다


02 - Vector Variables 5
_eVec_ = _Hello_ ( _eVec_ is a string, which is a vector of characters )

거의 10년 전

문제를 풀었습니다


04 - Scalar Equations 2
Define the variables a and b: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b.png>...

거의 10년 전

더 보기