Gelöst


Assignment Problem
Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

etwa 10 Jahre vor

Gelöst


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

etwa 10 Jahre vor

Gelöst


Multiply by 3
There are many ways to obtain 3 times a number. You could multiply by 3, add the number 3 times, multiply by 6 and then subtract...

etwa 10 Jahre vor

Gelöst


Find the sum of n squares
What is the sum of the squares of the first n integers?

etwa 10 Jahre vor

Beantwortet
Why are title and x/y lable not listed in Children property of axes?
The answer is that those aren't axes children. Here is documentation page that mention it: <https://nl.mathworks.com/help/matla...

etwa 10 Jahre vor | 0

Gesendet


Floating point relational operator.
Numerical comparison with specified precision.

etwa 10 Jahre vor | 1 Download |

3.0 / 5
Thumbnail

Gelöst


Replace values out of an interval with the lower or upper values
For a vector or matrix X and an interval [n1,n2], the function replace every element of x inferior to n1 by n1, and every elemen...

etwa 10 Jahre vor

Gelöst


Values in Array
How many values are in the array

etwa 10 Jahre vor

Gelöst


Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

etwa 10 Jahre vor

Gelöst


unique with nan
input x = [2 NaN 3 5 NaN; 1 NaN 4 9 NaN; 8 -2 7 6 -2; 7 4 8 5 4]; output y_correct = [2 ...

etwa 10 Jahre vor

Gelöst


Crunch that matrix!
You are given an M x N matrix. Write a script that will compress this matrix into an M x (N/3) matrix, where each of the terms ...

etwa 10 Jahre vor

Gelöst


Numerical Integration
Input * |x0|, a real number greater than 0 Output * |I|, a numerical estimate of the integral x0 / I...

etwa 10 Jahre vor

Gelöst


Convert nested struct-array to numeric array
Sometimes data happens to be nicely structured in a struct-array, distributed over various levels of the struct, according to th...

etwa 10 Jahre vor

Gelöst


Detect pair of equal values in a Matrix
A 2D matrix of 2 rows and N columns with random integer numbers. A = [3 1 2 4 6 6 7; 7 3 2 1 5 2 4] ...

etwa 10 Jahre vor

Gelöst


Block average ignoring NaN values
Given a matrix, calculate the block average of each disjoint sub-matrix while ignoring *NaN* values. Assume that the size of the...

etwa 10 Jahre vor

Gelöst


Block average
Given a matrix, calculate the block average of each disjoint sub-matrix of the same size. Assume that the size of the matrix alo...

etwa 10 Jahre vor

Gelöst


Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

etwa 10 Jahre vor

Gelöst


Fifteen Parity Check
The Matlab function fifteen initializes the 4x4 array with randperm(16), which produces 50% unsolvable puzzles. A <https://en.wi...

etwa 10 Jahre vor

Gelöst


Does this dress make me look fat
For the input string "Does xyz make me look fat" output the string "No, xyz does not make you look fat"

etwa 10 Jahre vor

Gelöst


means
Calculate the arithmetic, the geometric and the harmonic mean of a given vector (with positive elements) and return them in a ve...

etwa 10 Jahre vor

Gelöst


Wien's displacement law
Given the black body temperature (in *Celsius*), output the weavelength (in *meters*) at which the radiation peaks, according to...

etwa 10 Jahre vor

Gelöst


Isothermal Expansion
Given the initial pressure and volume of an ideal gas, calculate the new volume, given the new pressure. Hint: <https://en.wi...

etwa 10 Jahre vor

Gelöst


Lambert's W
Matlab cody does not support lambertw. Try to create a lambert's w function yourself. Lambert's W is the function that solves...

etwa 10 Jahre vor

Gelöst


RGB to CMYK
Convert an RGB code to the corresponding CMYK code for printing. The RGB input is a [1×3] double array between 0 and 1. ...

etwa 10 Jahre vor

Gelöst


Sum two real numbers
It seems easy, but... You cannot use +, -, plus, diff, cumsum, *, prod, times, etc.

etwa 10 Jahre vor

Beantwortet
Rotate Meshgrid 45 Degrees
theta = 45; x2 = x*cosd(theta) - y*sind(theta); y2 = x*sind(theta) + y*cosd(theta);

etwa 10 Jahre vor | 0

Gelöst


Babylonian method
Calculate the square root of a given positive number a using the Babylonian method (https://en.wikipedia.org/wiki/Methods_of_co...

etwa 10 Jahre vor

Gelöst


Coefficients and vertex of a parabola given 3 points
Given 3 points, each defined by x and y, compute the coefficients: [a,b,c] of a parabola with equation: y = ax^2 + bx + c passin...

etwa 10 Jahre vor

Gelöst


Increasing sub-sequence (Level 1)
Given a vector, v, of real numbers, return a positive integer, n, representing the longest contiguous increasing sub-sequence co...

etwa 10 Jahre vor

Gelöst


Number of bytes required to store a sparse matrix
The input is always a *sparse* matrix : x = sparse(100,1000,0.01); >>whos x shows that 4016 bytes ares required . ...

etwa 10 Jahre vor

Mehr laden