문제를 풀었습니다


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

4일 전

문제를 풀었습니다


Magnitude of a vector
Given a vector x, what is its magnitude?

4일 전

문제를 풀었습니다


Create tangent function out of cosine only
Please don't use tangent and sine functions

4일 전

문제를 풀었습니다


Ratio between sums of prime and non-prime numbers
Write a function that calculates the ratio between the sum of the prime numbers lower or equal than x, and the sum of the non-pr...

4일 전

문제를 풀었습니다


Double the next!
Given two numbers, m and n, find a matrix [m,n] where each element value is twice the value of the previous element. Starting fr...

4일 전

문제를 풀었습니다


Alternate elements!
Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.

4일 전

문제를 풀었습니다


Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

4일 전

문제를 풀었습니다


prime to each other
Given two integers n1, n2 greater than 1, find out if they have common divisors or are prime to each other. Return "true" if the...

4일 전

문제를 풀었습니다


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

4일 전

문제를 풀었습니다


Throw common elements of two vector arrays
Throw common elements as output of two given input vector arrays

4일 전

문제를 풀었습니다


To convolve two vectors
To convolve two vectors

4일 전

문제를 풀었습니다


Try and Catch Simple Example
Try and Catch Simple Example <http://in.mathworks.com/help/matlab/ref/try.html Example> Vector x=[1 4 6 8 10]; Create...

4일 전

문제를 풀었습니다


Add two hex numbers
Add two hex numbers

4일 전

문제를 풀었습니다


Add two different item as shown in example
Add two different item as shown in example x=5; y='ab'; Then output must be'5ab';

4일 전

문제를 풀었습니다


Find the rank of a matrix
Determine the rank of a matrix without using the MATLAB function of the same name.

4일 전

문제를 풀었습니다


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

4일 전

문제를 풀었습니다


Generate vector according to sign of vector
Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

4일 전

문제를 풀었습니다


Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

5일 전

문제를 풀었습니다


Create an array from 1 to x in steps of 1.

5일 전

문제를 풀었습니다


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

5일 전

문제를 풀었습니다


Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

5일 전

문제를 풀었습니다


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

5일 전

문제를 풀었습니다


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

5일 전

문제를 풀었습니다


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

5일 전

문제를 풀었습니다


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

5일 전

문제를 풀었습니다


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

5일 전

문제를 풀었습니다


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

5일 전

문제를 풀었습니다


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

5일 전

문제를 풀었습니다


Product of all elements in an array
Compute the product of all elements in an array.

5일 전

문제를 풀었습니다


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

5일 전

더 보기