已解决


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

4 years 前

已解决


What is the distance from point P(x,y) to the line Ax + By + C = 0?
Given a point, P(x,y), find the distance from this point to a linear line. INPUTS: x, y, A, B, C OUTPUTS: d, the distance ...

4 years 前

已解决


Are you in or are you out?
Given vertices specified by the vectors xv and yv, and a single point specified by the numbers X and Y, return "true" if the poi...

4 years 前

已解决


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

4 years 前

已解决


create a function that cubes a number
example: x = 3 y = 27

4 years 前

已解决


Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

4 years 前

已解决


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

4 years 前

已解决


Change Vector Value
Change the element of the vector with respect to the element of the direction vector If the element of the direction vecto...

4 years 前

已解决


Find the solution of algebraic equation
Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0; ...

4 years 前

已解决


Create tangent function out of cosine only
Please don't use tangent and sine functions

4 years 前

已解决


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

4 years 前

已解决


Calculate the values of a polynomial.
Calculate the values of a polynomial.Input parameter p - vector of polynomial coefficients, x - matrix of the argument values. ...

4 years 前

已解决


Average valid values of arrays
Given a 1D array (column or row vector), compute the average of valid values. Valid values are defined via two thresholds: minVa...

4 years 前

已解决


Conversion from hours to mili sec
Convert given input in hours to mili seconds

4 years 前

已解决


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

4 years 前

已解决


Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

4 years 前

已解决


Covering area
As an extension of the problem <http://www.mathworks.com/matlabcentral/cody/problems/416-polygon-area>, find the area, bounded b...

4 years 前

已解决


Angle between Two Vectors
The dot product relationship, a dot b = | a | | b | cos(theta), can be used to determine the acute angle between vector a and ve...

4 years 前

已解决


square of a number
find square of a given number

4 years 前

已解决


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

4 years 前

已解决


Summy's even sum

4 years 前

已解决


Summy's odd sum

4 years 前

已解决


Basic Quadratic Equation
Create the equation: y=(3x)^2+(5x)+35 and compute y for various values of x

4 years 前

已解决


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

4 years 前

已解决


Prime numbers between a , b.
Find all prime number between a & b (including a and b). example: a=100 b=120 y= [101 103 107 109 113]

4 years 前

已解决


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

4 years 前

已解决


Sum of logarithms
Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use...

4 years 前

已解决


Check transmitted data follow even parity (True or false)
Check transmitted data follow even parity (True or false) <http://en.wikipedia.org/wiki/Parity_bit/ Parity Bit> Say, '010...

4 years 前

已解决


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

4 years 前

已解决


square root
Find the square root (y) of an input (x).

4 years 前

加载更多