已解决


07 - Common functions and indexing 5
Create the vector _lin_: <<http://samle.dk/STTBDP/Assignment1_7e.png>> (the integers from 1 to 20) Make every other val...

1 year 前

已解决


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

1 year 前

已解决


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

1 year 前

已解决


06 - Matrix Equations 1
Define the vectors _aVec_ and _bVec_ and the matrix _aMat_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http:/...

1 year 前

已解决


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

1 year 前

已解决


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

1 year 前

已解决


Sum of series VIII

1 year 前

已解决


kmph to mps
convert kilometer per hour to meter per second

1 year 前

已解决


Sum of series IX
What is the sum of the following sequence: Σ 1/k! for k=1...n for different n?

1 year 前

已解决


Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

1 year 前

已解决


string comparision
compare two strings if both are same return 1 else return 0

1 year 前

已解决


Average valid values of arrays
Given a 1D array (column or row vector), compute the average of valid values. Valid values are defined via two thresholds: minVa...

1 year 前

已解决


Matrix Indexing
Given a matrix A and scalars r,c,i, find the product of two elements, with the first element located at row r and column c (doub...

1 year 前

已解决


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

1 year 前

已解决


Kelvin to Celsius
Degrees Celsius = degrees Kelvin - 273.15. Given a temperature in Kelvin, return the equivalent temperature in Celsius.

1 year 前

已解决


lb to kilogram
convert lb to kilogram units, easy

1 year 前

已解决


Replace all odd numbers with NaN
Replace all odd numbers in the vector or matrix with NaN. For example, if x = [1 3 4 5 8 11]; then return y = [NaN Na...

1 year 前

已解决


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

1 year 前

已解决


odd number odd sum
How many three digit numbers are there whose sum of the digits is odd?

1 year 前

已解决


String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

1 year 前

已解决


SAY 'OHYEAH'
Regardless of input, output the string 'OHYEAH'.

1 year 前

已解决


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle, outp...

1 year 前

已解决


Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

1 year 前

已解决


String Logic 13
Examples: 'CAT' --> 'TCA' 'DOG' --> 'OGD' 'ROSY' --> 'YSRO' 'MOSTLY' --> 'YTSOML'

1 year 前

已解决


Find all prime factors of the input
Given an input x, find its all prime factors. Return the vector with all factors in ascending order. Efficiency is the key here...

1 year 前

已解决


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

1 year 前

已解决


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

1 year 前

已解决


All odd - all even
All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...

1 year 前

已解决


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

1 year 前

已解决


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

1 year 前

加载更多