Feeds
문제를 풀었습니다
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
대략 13년 전
문제를 풀었습니다
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
대략 13년 전
문제를 풀었습니다
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
대략 13년 전
문제를 풀었습니다
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
대략 13년 전
문제를 풀었습니다
Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...
대략 13년 전
문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
대략 13년 전
문제를 풀었습니다
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:...
대략 13년 전
질문
Funny bug with respect to NaN value,
declare X as X = [1 2 3 4 NaN]; and then use, max(X) yields, 4 min(X) yields, 1 but in workspace the Min and Ma...
대략 13년 전 | 답변 수: 1 | 0
1
답변질문
A suspected BUG in " interp1( ) " function, (Matlab --> 2007b)
interp1([-inf 20 40 inf],[200 200 300 300],[0:10:50]); result : NaN NaN 200 250 300 300 ==> as per my understanding ...
대략 13년 전 | 답변 수: 2 | 0

