Gelöst


Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

etwa 7 Jahre vor

Gelöst


Complex number
For complex number c=a+bi, write code that will add a and b together.

etwa 7 Jahre vor

Gelöst


02 - Vector Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 1...

etwa 7 Jahre vor

Gelöst


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

etwa 7 Jahre vor

Gelöst


Determine the square root
Determine the square root of the value the user has entered, n.

etwa 7 Jahre vor

Gelöst


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

etwa 7 Jahre vor

Gelöst


Radians to Degrees
Convert radians to degrees.

etwa 7 Jahre vor

Gelöst


What's Your BMI?
Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

etwa 7 Jahre vor

Gelöst


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

etwa 7 Jahre vor

Gelöst


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

etwa 7 Jahre vor

Gelöst


Create a vector
Create a vector from 0 to n by intervals of 2.

etwa 7 Jahre vor

Gelöst


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

etwa 7 Jahre vor

Gelöst


Generate pi using logarithm
Generate pi using logarithm

etwa 7 Jahre vor

Gelöst


Multiply 2 numbers
Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

etwa 7 Jahre vor

Gelöst


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

etwa 7 Jahre vor

Gelöst


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

etwa 7 Jahre vor

Gelöst


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

etwa 7 Jahre vor

Gelöst


04 - Scalar Equations 3
Define the variables a, b, and c: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b....

etwa 7 Jahre vor

Gelöst


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

etwa 7 Jahre vor

Gelöst


Back to basics 13 - Input variables
Covering some basic topics I haven't seen elsewhere on Cody. Return as a string the name of the input variable to the functio...

etwa 7 Jahre vor

Gelöst


03 - Matrix Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

etwa 7 Jahre vor

Gelöst


03 - Matrix Variables 6
Make _fMat_ be a 5x3 matrix of random integers with values from -3 to 3 (Hint: use *randi*)

etwa 7 Jahre vor

Gelöst


Find max
Find the maximum value of a given vector or matrix.

etwa 7 Jahre vor

Gelöst


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

etwa 7 Jahre vor

Gelöst


Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

etwa 7 Jahre vor

Gelöst


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

etwa 7 Jahre vor

Gelöst


Degrees to Radian
Convert degrees to radians

etwa 7 Jahre vor

Gelöst


Joules to Megatons of TnT
Given joules, J, make a function that converts to megatons of TNT.

etwa 7 Jahre vor

Gelöst


find the required sampling frequency
find the required frequency in order to sample this signal and recovered back using law pass filler : signal= 4.5*sin (2*pi*1...

etwa 7 Jahre vor

Gelöst


Signal sample
Find the no. Of quantisation level of signal with 6-bits.

etwa 7 Jahre vor

Mehr laden