Divide by 4
Given the variable x as your input, divide it by four and put the result in y.
6年弱 前
解決済み
Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.
6年弱 前
解決済み
Times 32
X is given as your variable.
Y is your output multiplied by 32
Example
x=1
y=1x32=32
6年弱 前
解決済み
Find the square root of a value
Given the variable x as your input, find the square root and let the result be represented by y
Examples:
Input x = 4
O...
Sum Even Numbers
Given a number x, make the summation of all the even until x. For instance, x = 7, so y = 2+4+6 = 12
* x = [3]
* y = 2
* ...
6年弱 前
解決済み
times 5
Given the variable x as your input, multiply it by five and put the result in y.
6年弱 前
解決済み
Baseball Pitch Question
One pitcher made 10 practice pitches during his warm up before the game. Using the given information, create a vector matrix an...
6年弱 前
解決済み
Create a vector
Create a vector from 0 to n by intervals of 2.
Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n.
Example
x= [ 1 2 3...
6年弱 前
解決済み
Times 3 problem
When you enter the number, it should return the number multiplied by 3
6年弱 前
解決済み
Vector
Create a 1 x 10 vector from 1 to 20 with increments of 2
6年弱 前
解決済み
Sum all integers from 1 to 5^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=6
6年弱 前
解決済み
Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements.
Example:
x = [1 2 ...
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.