已解决


Duplicate a character
Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

6 months 前

已解决


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

6 months 前

已解决


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

6 months 前

已解决


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

6 months 前

已解决


Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

6 months 前

已解决


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

6 months 前

已解决


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

6 months 前

已解决


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

6 months 前

已解决


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

6 months 前

已解决


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

6 months 前

已解决


factorial of a number x
Factorial of a number x

6 months 前

已解决


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

6 months 前

已解决


square root
Find the square root (y) of an input (x).

6 months 前

已解决


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

6 months 前

已解决


length of a vector
Find twice the length of a given vector.

6 months 前

已解决


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

6 months 前

已解决


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

6 months 前

已解决


First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

6 months 前

已解决


04 - Scalar Equations 2
Define the variables a and b: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b.png>...

6 months 前

已解决


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

6 months 前

已解决


Is my wife right?
Regardless of input, output the string 'yes'.

6 months 前

已解决


Find MPG of Lightest Cars
The file cars.mat contains a table named cars with variables Model, MPG, Horsepower, Weight, and Acceleration for several classi...

7 months 前

已解决


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

7 months 前

已解决


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

7 months 前

已解决


QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a standard U.S. QWERTY keyboard and it...

7 months 前

已解决


Product of Each Column
Given a matrix |mat| with |n| columns, return a row vector |v| of length |n|, where every element in |v| is the product of the |...

7 months 前

已解决


Calculate cosine without cos(x)
Solve cos(x). The use of the function cos() and sin() is not allowed.

7 months 前

已解决


Calculate sin(x) without sin(x)
Calculate y = sin(x) x = 0 -> y= 0 without the use of sin(x) or cos(x)

7 months 前

已解决


Subtract integers and add doubles
Create a function that subtracts a from b if a and b are integers and adds them if they are floats.

7 months 前

已解决


Calculate supply voltage and total current
Three resistors are connected in series and each has a resistance in ohms. Resistor R2 has a voltage drop of ΔV2volts Find the ...

7 months 前

加载更多