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년 초과 전 | 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년 초과 전 | 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년 전
문제를 풀었습니다
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년 전
문제를 풀었습니다
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년 전