문제를 풀었습니다


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

7년 초과 전

문제를 풀었습니다


factorial of a number x
Factorial of a number x

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Basics: 'Find the eigenvalues of given matrix
Find the eigenvalues y for a given matrix x.

7년 초과 전

문제를 풀었습니다


Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

7년 초과 전

문제를 풀었습니다


index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

7년 초과 전

문제를 풀었습니다


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

7년 초과 전

문제를 풀었습니다


Repeat The Components of Matrix
Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated ne...

7년 초과 전

문제를 풀었습니다


Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

7년 초과 전

문제를 풀었습니다


Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


03 - Matrix Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

7년 초과 전

문제를 풀었습니다


Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


add 1
given x, y should be 1 greater than the input.

7년 초과 전

문제를 풀었습니다


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

7년 초과 전

문제를 풀었습니다


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

7년 초과 전

문제를 풀었습니다


Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it. (The original psi is passed as a number to the...

7년 초과 전

문제를 풀었습니다


Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

7년 초과 전

문제를 풀었습니다


create a circulant matrix
create a circulant matrix

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

7년 초과 전

문제를 풀었습니다


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

7년 초과 전

문제를 풀었습니다


Find x in provided equation!
x^2-2*x+1=0 This polynomial can be expressed by using each term's coefficients, such as [1 -2 1]. Using the polynomial ...

7년 초과 전

문제를 풀었습니다


modulus of a number
find the modulus of a given number

7년 초과 전

문제를 풀었습니다


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

7년 초과 전

문제를 풀었습니다


Sort complex numbers into complex conjugate pairs
Sort complex numbers into complex conjugate pairs. Example: Input x = [3-6i -1-4i -1+4i 3+6i] Sorted output = [-1 - ...

7년 초과 전

더 보기