Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as
y = A.ⅇ^(-λt)*cos(2πft)
where A, λ, and f are scalars and t is a vector.
...
Back to basics 5 - Clipboard
Covering some basic topics I haven't seen elsewhere on Cody.
Copy the input string to the clipboard
10ヶ月 前
解決済み
Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1.
Example:
A = [1 2 3 -1 0 2 -3 -80];
...
10ヶ月 前
解決済み
01 - Scalar variables
Create the following variables:
<<http://samle.dk/STTBDP/Assignment1_1.png>>
10ヶ月 前
解決済み
Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.
10ヶ月 前
解決済み
Area of a disk
Find the area of a disk or circle.
x= radius of the disk.
10ヶ月 前
解決済み
Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input vector of numbers, output a square array with the...
10ヶ月 前
解決済み
Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros.
Exam...
10ヶ月 前
解決済み
Subtraction
Given two numbers a and b subtract them
10ヶ月 前
解決済み
Multiples of a Number in a Given Range
Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...
How Many Months Until It's Today Again?
Given a particular date, calculate how many months must pass before that same day of the month occurs on the same day of the wee...
1年以上 前
解決済み
Tax Season ! How much is my salary?
Tax Season! I was employed for a period from x until y in a year and I get pay check of amount z on every alternate Friday of th...
1年以上 前
解決済み
microseconds passed today
Calculate the amount of microseconds passed for a given date string. Return the value, rounded to the nearest integer, as a stri...
1年以上 前
解決済み
Find number of days
The input is two date in string format (dd-mm-yyyy)
find out the number of days between these two dates.
Example:
input: ...