03 - Matrix Variables 4
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_3d.png>>
A 3x4 NaN (Not a Number) matrix
(Hint: use ...
7年弱 前
解決済み
Negative Infinity
Round the given array a towards negative infinity.
7年弱 前
解決済み
Count decimal digits of a number
* Given an integer number you have to return the number of its digits.
* For example 248 has 3 digits and 1589 has 4 digits
...
7年弱 前
解決済み
Colon operator of two vectors
You are given two vectors of equal length: VecStart, VecEnd
Each vector contain a set of integers, where VecEnd(j)>=VecStar...
7年弱 前
解決済み
Find the logic
There exists one logic in between input and output. Find it (easy math).
Example 1:
x=13 then y=339;
Example 2:
x=26...
7年弱 前
解決済み
What percentage?
Calculate the output c as the percentage of a on b for given a and b.
7年弱 前
解決済み
Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row
7年弱 前
解決済み
Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...
7年弱 前
解決済み
Binary
Given a positive, integer n, create a function that returns the respective binary number in the form of a vector.
Example:
...