More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...
Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)
3年以上 前
解決済み
Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...
3年以上 前
解決済み
Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following:
* ...
Change string to number
Change given string to number. (hint: there is already function)
Changing from ['1234'] to [1234] is one of example
3年以上 前
解決済み
Calculate some equation
Using given inputs x and z, make two outputs that are
y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2
y2 = x^z - z^x + (x/z)^2 - (z/x...
3年以上 前
解決済み
Save variables
a=[1]
Save variable a that is located in workspace into current folder. File name should be 'a.mat'
3年以上 前
解決済み
Next Higher Power of B
|Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is greater than or equal to _n_.
...
3年以上 前
解決済み
Find out magnitude of vector
Find out magnitude of vector.
Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2)
Please don't use sum function.
If you l...
3年以上 前
解決済み
Crate a vector of logarithmically spaced
Create a vector of logarithmically spaced from 10^0 to 10^x with n sample
Example: if x=4 and n=3
Answer must be=[1 100 10...
3年以上 前
解決済み
Convert Kilometers to Miles
Convert kilometers to miles. Consider 1 km = 0.62 mile.
Note: Don't use the '*' operator.