Prime number removal
remove all prime numbers from the input
e.g.
input =
1 2 3 4 5 6 7 8 9 10 11 12 ...
7年以上 前
解決済み
Calculating selling price
Cost of a Product is $x
What should be the selling price if you want to gain 10%?
7年以上 前
解決済み
Zero Cross
Write a function that counts the number of times n a signal x crosses zero or changes sign.
Examples
x = [1 2 -3 -4 5 6 ...
7年以上 前
解決済み
Log of a number
Write a script that will give the log of x as output.
7年以上 前
解決済み
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...