Basic commands - amount of inputs
Make a function, which will return amount of given inputs
Example:
amountinput(1,2,4,3,10) -> 5 , because we gave functio...
4年弱 前
解決済み
BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum.
Examp...
Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x.
<<https://i.imgur.com/jlZDHhq.png>>
Image courtesy of <http://up...
4年弱 前
解決済み
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...
4年弱 前
解決済み
Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.
Multiply 2 numbers
Very easy, you just have to multiply 2 numbers
but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...
4年弱 前
解決済み
Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit.
Examples:
Input celsiusValue = 100
Output fahrValu...
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4
So if n = 3, then return
[1 2 2 3 3 3]
And if n = 5, then return
[1 2 2 3 3 3 4...
4年弱 前
解決済み
kmph to mps
convert kilometer per hour to meter per second
4年弱 前
解決済み
What percentage?
Calculate the output c as the percentage of a on b for given a and b.