Vector multiplication
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...
S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...
約10年 前
問題
S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...
Log of a number
Write a script that will give the log of x as output.
約10年 前
解決済み
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.
約10年 前
解決済み
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 ...
約10年 前
解決済み
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...