Problema


5 Prime Numbers
Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

casi 9 años hace | 7 | 455 solvers

Problema


Is it really a 5?
A number containing at least one five will be passed to your function, which must return true or false depending upon whether th...

casi 9 años hace | 7 | 320 solvers

Resuelto


Some Assembly Required
The input to this function is a matrix of real numbers. Your job is to assemble the rows of the matrix into one large row that ...

casi 9 años hace

Resuelto


Area of square
Find the area of a square whose diagonal length is given as x.

casi 9 años hace

Resuelto


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

casi 9 años hace

Resuelto


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

casi 9 años hace

Resuelto


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

casi 9 años hace

Resuelto


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

casi 9 años hace

Resuelto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

casi 9 años hace

Resuelto


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

casi 9 años hace

Resuelto


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

casi 9 años hace

Resuelto


Implement a counter
Write a function that returns a function that counts the number of times it is invoked. Example: >> h = counter; >> h() ...

casi 9 años hace

Resuelto


Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

casi 9 años hace

Resuelto


Seemingly impossible problem
This is a _seemingly_ 'impossible' problem, because variously your function, "impossibleFn", must return an output of either 1 o...

casi 9 años hace

Resuelto


Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

casi 9 años hace

Resuelto


Sum two matrices
Take two incoming matrices, and sum them

casi 9 años hace

Resuelto


Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number

casi 9 años hace

Resuelto


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

casi 9 años hace

Resuelto


Matrix Max Finder
Output the maximum value in a matrix

casi 9 años hace

Resuelto


Rewrite setdiff to account for non-unique values
Setdiff(a,b) is a function that will remove all values of b from a. Sometimes, you need this function to do a little bit extra,...

casi 9 años hace

Resuelto


Component area
Find the area of the component below, all measurements are in mm <<https://image.ibb.co/hocruF/Component.png>>

casi 9 años hace

Resuelto


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

casi 9 años hace

Resuelto


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

casi 9 años hace

Resuelto


Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

casi 9 años hace

Resuelto


Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

casi 9 años hace

Resuelto


Vector Element Multiplication
Take two incoming vectors, and output the element wise multiplication of the vectors.

casi 9 años hace

Cargar más