Resuelto


Calculate the sum of elements of n*n Hilbert matrix.
Calculate the sum of elements of n*n Hilbert matrix. Example n=5 HilbertMatrix=[1.0000 0.5000 0.3333 0.2500 ...

casi 10 años hace

Resuelto


Number of nonzero elements in matrix
Calculate the number of nonzero elements for given matrix

casi 10 años hace

Resuelto


What do you get if you multiply six by nine?
The Hitchhiker's Guide to the Galaxy based task. Tip: 13-base numeral system

casi 10 años hace

Resuelto


UICBioE240 problem 1.12
The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...

casi 10 años hace

Resuelto


Tridiagonal matrix
Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

casi 10 años hace

Resuelto


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

casi 10 años hace

Resuelto


Find the sum of the negative elements under the main diagonal.
Example Input A=[1 2; -3 0] Output -3

casi 10 años hace

Resuelto


Set number x for diagonal of square matrix, which size is n.
Set number x for diagonal of square matrix, other values should be equlal 0, which size is n. Example n=2, x=4: [4 0; 0 4]

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

casi 10 años hace

Resuelto


how to round off a given number containing decimals?
how to round off a given number containing decimals?

casi 10 años hace

Resuelto


Image Series 3 Complementary
Find the Complementary of image which is 8 bits gray scale image. Each pixel is converted to binary format in the image. A...

casi 10 años hace

Resuelto


Recursion - Fun
Generate the first k terms in the sequence a(n) define recursively by a(n+1)=p*a(n)+(1+a(n)) with p=0.9 and a(1)=0.5 ...

casi 10 años hace

Resuelto


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

casi 10 años hace

Resuelto


Set x value to each even index of vector y.
Set x value to each even index of vector y.

casi 10 años hace

Resuelto


Select primes from the matrix.
Select primes from the matrix.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

casi 10 años hace

Resuelto


Finding two missing number in 1 to n array
You are given an array of numbers from 1 to n with two missing numbers. Return the two missing numbers. Input: x=[5 2 0 1 ...

casi 10 años hace

Resuelto


Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

casi 10 años hace

Resuelto


How find maximum element of a column in matrix?
How find maximum element of a column in matrix?

casi 10 años hace

Resuelto


Convert a grayscale image into RGB colour format, preserving data type
In the Image Processing Toolbox, MATLAB provides rgb2gray to convert a 3 channel color image into a 1 channel intensity...

casi 10 años hace

Resuelto


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

casi 10 años hace

Resuelto


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

casi 10 años hace

Resuelto


Сoncatenate two strings.
Сoncatenate two strings. Example s1='Hello' s2='world' result='Hello world'

casi 10 años hace

Resuelto


Vectors multiplication.
Multiply two vectors x transposed and y.Example x = [1 2 3 4 5 6 7 8 9 10 ] y = [ 1 2 ...

casi 10 años hace

Resuelto


Nth roots of unity
First, find the n nth roots of unity. eg if n = 6, find the n distinct (complex) numbers such that n^6 = 1. <https://en.wiki...

casi 10 años hace

Resuelto


Slope of the line passing through the point [x1 y1] and [x2 y2]
Determin the slope of Line passing through the points a=[x1 y1] and b=[x2 y2]

casi 10 años hace

Resuelto


remove nans fast
There are several ways to locate and remove nans in a matrix, and return an 1d row vector. In this problem the challenge is ...

casi 10 años hace

Resuelto


x&u are two vectors then Y=x+u???
x&u are two vectors then Y=x+u???

casi 10 años hace

Cargar más