Square the input
Given a scalar or vector x, return the square of each element.
Example
x = [7 2]
answer = [49 4]
9年以上 前
解決済み
Reverse a string
Reverse the given string.
Example
input = 'reverse'
output = 'esrever'
9年以上 前
解決済み
Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts
example:
a = 1, b = 2
output = 1 1.25 ...