문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

대략 5년 전

문제를 풀었습니다


Area of a circle
Find the value for area of the circle if diameter is given

대략 5년 전

문제를 풀었습니다


Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

대략 5년 전

문제를 풀었습니다


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

대략 5년 전

문제를 풀었습니다


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.

대략 5년 전

문제를 풀었습니다


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

대략 5년 전

문제를 풀었습니다


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

대략 5년 전

문제를 풀었습니다


Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

대략 5년 전

문제를 풀었습니다


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

대략 5년 전

문제를 풀었습니다


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

대략 5년 전

문제를 풀었습니다


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Solve the set of simultaneous linear equations
Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

대략 5년 전

문제를 풀었습니다


Determine the mean of matrix
Determine the mean of matrix without using mean function Hint: use simple algorithm

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


sum of non-primes
The sum of the non-primes no larger than 10 is 1+4+6+8+9+10=38 Find the sum of all the positive non-prime integers that do no...

대략 5년 전

문제를 풀었습니다


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Gamma Function
Evaluate the <http://en.wikipedia.org/wiki/Gamma_function/ Gamma Function>. Gamma_val(0) = Inf Gamma_val(1.2) = 0.9182

대략 5년 전

문제를 풀었습니다


Create vector as shown in test cases
Create vector as shown in test cases

대략 5년 전

문제를 풀었습니다


Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

대략 5년 전

문제를 풀었습니다


Find out magnitude of vector
Find out magnitude of vector. Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2) Please don't use sum function. If you l...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

대략 5년 전

더 보기