Revant Adlakha
Followers: 0 Following: 0
Feeds
已回答
How to find the index of the closest value to some number in 1D array ?
You could also use something like this, where f(x) is the function and x is the value of interest. ind = find(min(abs(f(x) - x)...
How to find the index of the closest value to some number in 1D array ?
You could also use something like this, where f(x) is the function and x is the value of interest. ind = find(min(abs(f(x) - x)...
3 years 前 | 2
已回答
How to seperate fractional and decimal part in a real number
How about this? sign(x)*(abs(x) - floor(abs(x))) % Number -> x = -1.23 % Answer -> -0.23 % Number -> x = 1.23 % Answer ...
How to seperate fractional and decimal part in a real number
How about this? sign(x)*(abs(x) - floor(abs(x))) % Number -> x = -1.23 % Answer -> -0.23 % Number -> x = 1.23 % Answer ...
3 years 前 | 1
已解决
Numbers on 7-segment
This is a 7-segment: _ |_| |_| It's a 3-by-3 char matrix.It has made by 3 characters: '_' , '|' and ' ' (space...
4 years 前
已解决
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
4 years 前
已解决
Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...
4 years 前