Resuelto


Find the mean of a 2-D matrix after excluding elements of specified sub-matrix
You need to find the mean of a 2-D matrix after excluding elements which form an inner sub-matrix. e.g. If the input 2-D matrix ...

más de 8 años hace

Resuelto


Simple spirometer - find your lung capacity from number and size of soap bubbles in one breath
Assumed that each bubble has practically the same diameter d. Given total number n of bubbles. Find volume v of breath.

más de 8 años hace

Resuelto


Given n, create n random numbers such that their standard deviation is also n.
Given n, create n random numbers such that their standard deviation is also n.

más de 8 años hace

Resuelto


Rotate it!
Given a set of points, your aim is to rotate it by a given angle "theta" CCW (in 2d). The points are given in a matrix(x) of dim...

más de 8 años hace

Resuelto


Calculate the sum of two polynomials
Calculate the sum of two polynomials if they are written in notation with their coefficients. example: a=[3 4 5]; b=[...

más de 8 años hace

Resuelto


Generate one sample of uniform random numbers between -pi and +pi
Generate one sample of uniform random numbers between -pi and +pi.

más de 8 años hace

Resuelto


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

más de 8 años hace

Resuelto


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

más de 8 años hace

Resuelto


Signed Magnitude
For a given input vector, return the value that is furthest from zero. For example, if x = [1 2 -12] return -12.

más de 8 años hace

Resuelto


Assert yourself! Hack the assert function to pass this test.
Have you ever wanted to test out one of the hacks you have seen where "games" a problem by simply overwriting the assert method?...

más de 8 años hace

Resuelto


Recursion at variable input
input of any length a =2 b =2 c =3 output = (a^b)^c = 64

más de 8 años hace

Resuelto


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

más de 8 años hace

Resuelto


Probability of red tulips
I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

más de 8 años hace

Resuelto


convert between ascii and characters
I have seen multiple problems like this but none of them have a robust test suite associated with them. The first input C is ...

más de 8 años hace

Resuelto


Combination of Vectors
Return a combination of vectors x1, x2 based on y1, y2 per: x(j) = 0 if y1(j) < y2(j) x(j) = x1(j) if y1(j)...

más de 8 años hace

Resuelto


Probability of red tulips (at both ends of a row)
I planted tulip bulbs in a row on my flower bed. I thought that I had planted white tulips all. However, later, it turned out t...

más de 8 años hace

Resuelto


Brain Teaser Solver
Write an algorithm to solve this brain teaser: You have a square that is broken into four triangles, the area of three of tho...

más de 8 años hace

Resuelto


Sort the prime numbers in each row of a 3x3 matrix
Considering a 3x3 matrix A, sort the prime numbers of each row in ascending order. For exemple: input A=[5 8 2 4; ...

más de 8 años hace

Resuelto


Practical 1, Question 2b (incomplete)
See practical_1.pdf, question 2. Currently incomplete!

más de 8 años hace

Resuelto


Calculate feeling temperature before climbing a mountain
I sometimes climb a mountain. As is well known, when the altitude becomes 100 (m) higher, the temperature lowers by 0.6 degrees...

más de 8 años hace

Resuelto


Product of two multidimensional polynomials
MATLAB <https://www.mathworks.com/help/matlab/polynomials.html has a few functions> for creating and manipulating single-variabl...

más de 8 años hace

Resuelto


Average of even-numbered columns
Given a vector, find the average of even-numbered columns. e.g x = [ 4 6 8 9 1 2 7 ] y = ( 6 + 9 + 2 ) / 3

más de 8 años hace

Resuelto


Compute the intersect point of line and plan
Compute the intersect point of line and plan. eg. line AB, the coordinate of A is (1,2,3) the coordinate of B is (-4,-5,-6...

más de 8 años hace

Resuelto


Insert Special character in character cell array.
input={'a','b','c'} then ans={'a','*','b','*','c'}

más de 8 años hace

Resuelto


Delete the column with all 0 !
Delete the column with all 0 data in a matrix(x). e.g. input x = 1 0 0 4 5 0 7 0 ...

más de 8 años hace

Resuelto


Delete the column with all 0 in the TABLE
In the given table (T), delete the column with all 0 data. e.g. input Banana Apple Orange Mellon __...

más de 8 años hace

Resuelto


Cell Operator *
Please implement operator * for cell: >> {2,3} * 2 ans = 1×4 cell array [2] [3] [2] [3] >> {2,3} * [2 3]...

más de 8 años hace

Resuelto


Replace Nan!
Replace Nan in the given vector(v) with 9999.

más de 8 años hace

Resuelto


NCHOOSEK - Time Optimization
*Input* * *V* —— Set of all choices, a vector of N, N < 100 * *K* —— Number of selected choices, a scalar, 0 <= K <= N ...

más de 8 años hace

Resuelto


Divisible by 21
Write a function to determine if a number is divisible by 21.

más de 8 años hace

Cargar más