Feeds
질문
will matlab treat model as floating point in MiL eventhough model is converted to fixedpoint?
when Mil simulation is performed on a fixed point model, How matlab/Simulink treats the model? as fixed point or floating point?...
대략 9년 전 | 답변 수: 0 | 0
0
답변문제를 풀었습니다
Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0...
9년 초과 전
문제를 풀었습니다
Circular Shift Me
Given a vector v=[1 3 6 9 11], circular shift them while iterating m=[1 3 6 9 11; 11 1 3 6 9; 9 11 1 3 6; 6 9 11 1 3; 3 6 9 1...
9년 초과 전
문제를 풀었습니다
Remainder Calculator Without Using built-in mod(x)
Given x, and divisor. Compute for the remainder without using mod() function
9년 초과 전
문제를 풀었습니다
Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...
9년 초과 전
문제를 풀었습니다
Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...
9년 초과 전
문제를 풀었습니다
Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12
9년 초과 전
문제를 풀었습니다
Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1
9년 초과 전
문제를 풀었습니다
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
9년 초과 전
문제를 풀었습니다
Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6
9년 초과 전
문제를 풀었습니다
Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9
9년 초과 전
문제를 풀었습니다
99 bottels of beer...
(don't know the song? -> <https://en.wikipedia.org/wiki/99_Bottles_of_Beer>) Create the count down vector in y
9년 초과 전
문제를 풀었습니다
Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.
9년 초과 전
문제를 풀었습니다
Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.
9년 초과 전
문제를 풀었습니다
Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...
9년 초과 전
문제를 풀었습니다
Rotate array 90 degrees
Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]
9년 초과 전
문제를 풀었습니다
Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...
9년 초과 전

