Matrix convolution
A certain convolution step involves an elementwise multipication between two 3x3 matrices and taking the resulting sum of the el...
2年弱 前
解決済み
Function 1 (★)
Compute the value of
<<https://i.imgur.com/AxKWLmE.gif>>
for any given positive x.
2年弱 前
解決済み
Create times-tables (★★★)
(copy of prob 33)
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 ti...
Create logarithmically spaced values (★)
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b.
Thus, if a = -2, ...
2年弱 前
解決済み
Vector raised to a power, element-wise (★)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then
...
2年弱 前
解決済み
PEMDAS test (★★)
Create the function that will return the following expression for x and y.
<<https://i.ibb.co/RHWyzrv/Code-Cogs-Eqn-1.gif>>
...
Vector creation using linspace
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use linspace.
2年弱 前
解決済み
Doubling elements in a vector (★★)
(copy of prob. 1024)
Given the vector A, return B in which all numbers in A are doubling. So for:
A = [ 1 5 8 ]
t...
2年弱 前
解決済み
Magnitude of a vector (★★★)
Given a vector x with values [ x1, x2, x3, ..., xn ], compute the magnitude (or length) of the vector which is given by
href ...
2年弱 前
解決済み
Element-wise vector product (★)
Given two vectors x and y, compute their element-wise product z.
Thus, if x = [1 3 5] and y = [0.5 -1 2], then
z = [1*0.5...
Simple Interest : Calculate Present Value
Theorem : Simple Interest
where;
F : Future Value
P : Present Value
r : Annual simple interest rate (decimal)
t : Time in...
2年弱 前
解決済み
Simple Interest : Calculate Future Value
Theorem : Simple Interest
where;
F : Future Value
P : Present Value
r : Annual simple interest rate (decimal)
t : Time in...