Gelöst


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. ...

etwa ein Jahr vor

Gelöst


Multiplication
Given 2 numbers a and b mulitply them

etwa ein Jahr vor

Gelöst


reverse string
input='rama' output='amar'

etwa ein Jahr vor

Gelöst


Back to basics 5 - Clipboard
Covering some basic topics I haven't seen elsewhere on Cody. Copy the input string to the clipboard

etwa ein Jahr vor

Gelöst


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]; ...

etwa ein Jahr vor

Gelöst


01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

etwa ein Jahr vor

Gelöst


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

etwa ein Jahr vor

Gelöst


Area of a disk
Find the area of a disk or circle. x= radius of the disk.

etwa ein Jahr vor

Gelöst


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...

etwa ein Jahr vor

Gelöst


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...

etwa ein Jahr vor

Gelöst


Subtraction
Given two numbers a and b subtract them

etwa ein Jahr vor

Gelöst


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...

etwa ein Jahr vor

Gelöst


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

mehr als ein Jahr vor

Gelöst


Make a diamond
Given n, odd number > 1, return n by n matrix consist of "null" and "*" characters arranged like a diamond. No toolbox funct...

mehr als ein Jahr vor

Gelöst


Find x rows where the sum of the numbers is the maximum
Find x rows where the sum of the numbers is the maximum. For example: when x is 2 and m is 2 3 5 0 2 3 5 5 6 0 9 4 then y =...

mehr als ein Jahr vor

Gelöst


Roll the Dice!
Description Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. Example [x1,x2] = rollDice(...

mehr als ein Jahr vor

Gelöst


Draw a '9' in a zero matrix!

mehr als ein Jahr vor

Gelöst


Draw a '8' in a zero matrix!

mehr als ein Jahr vor

Gelöst


Draw a '7' in a zero matrix!

mehr als ein Jahr vor

Gelöst


Draw a '6' in a zero matrix!

mehr als ein Jahr vor

Gelöst


Draw a '5' in a zero matrix!

mehr als ein Jahr vor

Gelöst


Draw a '4' in a zero matrix!

mehr als ein Jahr vor

Gelöst


Draw a '3' in a zero matrix!

mehr als ein Jahr vor

Gelöst


Draw a '2' in a zero matrix!

mehr als ein Jahr vor

Gelöst


Draw a '1' in a zero matrix!

mehr als ein Jahr vor

Gelöst


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...

mehr als ein Jahr vor

Gelöst


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...

mehr als ein Jahr vor

Gelöst


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...

mehr als ein Jahr vor

Gelöst


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: ...

mehr als ein Jahr vor

Gelöst


Find Month & day for given day number of a year
Find Month & day for given day number of a year (day number is any number ranging from 1 to 366)

mehr als ein Jahr vor

Mehr laden