Alternating sum
Given vector x, calculate the alternating sum
y = x(1) - x(2) + x(3) - x(4) + ...
9年以上 前
解決済み
Complex number
For complex number c=a+bi, write code that will add a and b together.
9年以上 前
解決済み
02 - Vector Variables 4
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_2d.png>>
(Logarithmically spaced numbers between 1 and 1...
9年以上 前
解決済み
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...
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....
9年以上 前
解決済み
Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...
9年以上 前
解決済み
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...
9年以上 前
解決済み
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...
9年以上 前
解決済み
03 - Matrix Variables 6
Make _fMat_ be a 5x3 matrix of random integers with values from -3 to 3
(Hint: use *randi*)
9年以上 前
解決済み
Find max
Find the maximum value of a given vector or matrix.
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...
9年以上 前
解決済み
Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.
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...
9年以上 前
解決済み
Signal sample
Find the no. Of quantisation level of signal with 6-bits.