解決済み


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

4年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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

4年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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

4年以上 前

解決済み


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

4年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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

4年以上 前

解決済み


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

4年以上 前

解決済み


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年以上 前

解決済み


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

4年以上 前

解決済み


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年以上 前

解決済み


square of a number
find square of a given number

4年以上 前

解決済み


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年以上 前

解決済み


Summy's even sum

4年以上 前

解決済み


Summy's odd sum

4年以上 前

解決済み


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

4年以上 前

解決済み


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

4年以上 前

解決済み


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年以上 前

解決済み


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

4年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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

4年以上 前

さらに読み込む