Linear Motion 5
A robot moving down an incline for 3 seconds undergoes a uniform acceleration of a ft/s2. If the robot has an initial velocity o...
4年弱 前
解決済み
Linear Motion 1
An object travels N feet in the first second of travel, N feet again during the second second of travel and N feet again during ...
4年弱 前
解決済み
Change string to number
Change given string to number. (hint: there is already function)
Changing from ['1234'] to [1234] is one of example
4年弱 前
解決済み
Vector raised to a power, element-wise (★)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then
...
4年弱 前
解決済み
Vector creation using colon operator
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use the colon (:) operator.
4年弱 前
解決済み
Swap the first and last columns (★★)
(copy of Prob 19)
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becom...
Element-wise vector product (★)
Given two vectors x and y, compute their element-wise product z.
Thus, if x = [1 3 5] and y = [0.5 -1 2], then
z = [1*0.5...
Make a vector of prime numbers
Input(n) - length of vector with prime numbers
Output(v) - vector of prime numbers
Example:
* n=1; v=2
* n=3; v=[2 3 5...
4年弱 前
解決済み
Log of a number
Write a script that will give the log of x as output.
Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3,
output = [4 4 4]
Hint:
Search for the function...