Solved


Extract area
There are observed data c and its location (x,y) x=1:0.1:10 y=1:0.1:10 % x and y are used as inputs [X,Y]=mesh...

9 years ago

Solved


Display positive elements of matrix.
Display positive elements of matrix.

9 years ago

Solved


Marvel or DC?
Given input vector determine if there's a DC value. If there is, output 'DC', else output 'MARVEL'

9 years ago

Solved


Nth root
Nth root of a number x

9 years ago

Solved


Angle difference between Hour Hand and Minute Hand of clock
*Calculate the difference of angles between Hour hand and Minute hand of clock* E.g. 1) At 12:00 Angle Difference = 0 deg...

9 years ago

Solved


Vector multiplication
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

9 years ago

Solved


Find my daddy long leg (No 's')
Given the ratio of the two legs,and the hypotenuse, find the value of the bigger leg

9 years ago

Solved


Performance - summation
Given a vector of natural numbers x = [1,2,3,...,N] compute the sum of its elements by not stressing the machine too much...

9 years ago

Solved


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]

9 years ago

Solved


Find unique number in input
Find value that occurs in odd number of input elements.

9 years ago

Solved


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

9 years ago

Solved


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...

9 years ago

Solved


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...

9 years ago

Solved


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

9 years ago

Solved


Analyze observation data
There are results of observation. A B C -------------------------- t=1 2.2 2.6 2.4 t=2 2.4 ...

9 years ago

Solved


Calculate correlation.
There are two data. y1=[0 1 2 3 4]' y2=[2 3 4 5 6]' We can see positive relationship between y1 and y2. The relations...

9 years ago

Solved


Upper Matrix in LU Decompositon
Get the Upper Matrix of the Matrix Given Please have a pride on not using built-in Matlab functions :)

9 years ago

Solved


Calculate polynomial equation
Calculate this equation using given x 1+x+x^2+x^3+....x^99 (hint: use polyval)

9 years ago

Solved


Solve the system of linear equations
4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Input is each coefficient of polynomial. For example, a=[4 ...

9 years ago

Solved


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

9 years ago

Solved


Clipper Function
Create a function that emulates a clipper circuit Given sin wave, t and the constant value for clipping, and the direction to re...

9 years ago

Solved


Combine the digits to output numbers
input could be of any length e.g. 1. in1 = 1 in2 = 2 output = 12 2. in1 = 2 in2 = 1 in3 = 0 output = 210

9 years ago

Solved


Half wave rectifier
Create a function that emulates a half wave rectifier. Use a sine wave

9 years ago

Solved


Calculate 3D Distance
Given 2 vectors (1st is initial position, 2nd is the destination) calculate the distance in 3D Example in1 = [0 0 0] in2...

9 years ago

Solved


Conduct inner product using given matrix
a=[1 2 3]; b=[3 4 5]; y=function(a,b) Output y should be 26

9 years ago

Solved


Calculate RMSE
RMSE(Root Mean Square Error) is widely used to calculate error. Calculate RMSE between [a] and [b] a=[1 2 3 4] b=[0 1 2 ...

9 years ago

Solved


Modified run-length companion vector
Given a vector x, return a vector that indicates the run length of any value in x. Each element in output vector shows how many ...

9 years ago

Solved


Calculate z=x^2+y^2
There are z in (x,y). x=1:10;y=1:10 [x y]=meshgrid(x,y) Calculate x^2+y^2.

9 years ago

Solved


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

9 years ago

Solved


Sort matrix a according to ascending order of B!
To be specific, A=[9 3 1 3] B=[1 3 2 4] are provided, ascending sorting of B is [B(1) B(3) B(2) B(4)]. Thus ...

9 years ago

Load more