Log of a number
Write a script that will give the log of x as output.
9 years 前
已解决
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...
ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.
9 years 前
已解决
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 ...
9 years 前
已解决
iteration of N blank spot
we have N spot which can be blank o filled
calculate the number of iteration for these spots.
e.g. N=2
1- blank blank
2- bl...
Sums of cubes and squares of sums
Given the positive integers 1:n, can you:
1. Compute twice the sum of the cubes of those numbers.
2. Subtract the square...